Commit 0bb8255c authored by Matija Obreza's avatar Matija Obreza
Browse files

Wrapped material-ui/Card in ui/common/Card for custom styling

parent 6c60ccff
import * as React from 'react';
import {withStyles} from 'material-ui/styles';
import Card, {CardHeader, CardContent, CardActions} from 'material-ui/Card';
import Card, {CardHeader, CardContent, CardActions} from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import Grid from 'material-ui/Grid';
import Markdown from 'ui/common/markdown';
......
......@@ -2,7 +2,7 @@ import * as React from 'react';
import Grid from 'material-ui/Grid';
import { withStyles } from 'material-ui/styles';
import * as classnames from 'classnames';
import Card, { CardHeader } from 'material-ui/Card';
import Card, { CardHeader } from 'ui/common/Card';
import { Page } from 'model/common.model';
import { Descriptor, IDescriptorFilter } from 'model/descriptor.model';
......
......@@ -4,7 +4,7 @@ import { DescriptorList } from 'model/descriptor.model';
import { DescriptorListLink, CropLink } from 'ui/catalog/Links';
import { Properties, PropertiesItem } from 'ui/catalog/Properties';
import Card, { CardHeader, CardContent } from 'material-ui/Card';
import Card, { CardHeader, CardContent } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import Markdown from 'ui/common/markdown';
......
import * as React from 'react';
import MuiCard, { CardHeader as MuiCardHeader, CardContent as MuiCardContent, CardActions as MuiCardActions } from 'material-ui/Card';
const Card = ({ ...props }) => (
<MuiCard { ...props } />
);
const CardHeader = ({ ...props }) => (
<MuiCardHeader { ...props } />
);
const CardContent = ({ ...props }) => (
<MuiCardContent { ...props } />
);
const CardActions = ({ ...props }) => (
<MuiCardActions { ...props } />
);
export { Card as default, CardHeader, CardContent, CardActions };
......@@ -3,7 +3,7 @@ import * as React from 'react';
import { Crop } from 'model/crop.model';
import { Link } from 'react-router';
import Card, {CardHeader, CardContent} from 'material-ui/Card';
import Card, {CardHeader, CardContent} from 'ui/common/Card';
import Divider from 'material-ui/Divider';
......
......@@ -2,7 +2,7 @@ import * as React from 'react';
import { Dataset } from 'model/dataset.model';
import Card, { CardHeader, CardContent } from 'material-ui/Card';
import Card, { CardHeader, CardContent } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import { Link } from 'react-router';
......
......@@ -27,7 +27,7 @@ import Divider from 'material-ui/Divider';
import AccessionIdentifiersList from 'ui/common/dataset/AccessionIdentifiersList';
import Card, {CardHeader, CardContent, CardActions } from 'material-ui/Card';
import Card, {CardHeader, CardContent, CardActions } from 'ui/common/Card';
const styles = (theme) => ({
root: {
......
......@@ -22,7 +22,7 @@ import { Properties, PropertiesItem } from 'ui/catalog/Properties';
import VocabularyCard from 'ui/pages/vocabulary/c/VocabularyCard';
import Grid from 'material-ui/Grid';
import Card, { CardHeader, CardContent, CardActions } from 'material-ui/Card';
import Card, { CardHeader, CardContent, CardActions } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import Button from 'material-ui/Button';
......
......@@ -19,7 +19,7 @@ import { PartnerLink, DescriptorListLink, CropLink } from 'ui/catalog/Links';
import { Properties, PropertiesItem } from 'ui/catalog/Properties';
import Grid from 'material-ui/Grid';
import Card, {CardHeader, CardContent, CardActions } from 'material-ui/Card';
import Card, {CardHeader, CardContent, CardActions } from 'ui/common/Card';
import Section from 'ui/common/layout/Section';
import Divider from 'material-ui/Divider';
import Button from 'material-ui/Button';
......
......@@ -13,7 +13,7 @@ import {FaoWiewsLink} from 'ui/catalog/Links';
import { Properties, PropertiesItem } from 'ui/catalog/Properties';
import Grid from 'material-ui/Grid';
import Card, {CardHeader, CardContent, CardActions} from 'material-ui/Card';
import Card, {CardHeader, CardContent, CardActions} from 'ui/common/Card';
import Button from 'material-ui/Button';
import Divider from 'material-ui/Divider';
......
import * as React from 'react';
import { withStyles } from 'material-ui/styles';
import Card, { CardHeader, CardContent } from 'material-ui/Card';
import Card, { CardHeader, CardContent } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import { Link } from 'react-router';
......
......@@ -15,7 +15,7 @@ import { Table, TableRow, TableCell } from 'ui/common/tables';
import { VocabularyLink } from 'ui/catalog/Links';
import Grid from 'material-ui/Grid';
import Card, { CardHeader, CardContent, CardActions } from 'material-ui/Card';
import Card, { CardHeader, CardContent, CardActions } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import Button from 'material-ui/Button';
......
import * as React from 'react';
import {Link} from 'react-router';
import Card, {CardHeader, CardContent, CardActions} from 'material-ui/Card';
import Card, {CardHeader, CardContent, CardActions} from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import {Vocabulary} from 'model/vocabulary.model';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment