Commit 11ee9da0 authored by Matija Obreza's avatar Matija Obreza
Browse files

Removed unnecessary Divider in Cards

parent b431319c
import * as React from 'react';
import {withStyles} from 'material-ui/styles';
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';
import Button from 'material-ui/Button';
......@@ -171,7 +170,6 @@ const DescriptorCard = ({complete = true, compact, descriptor, classes, classNam
<DescriptorLink to={ descriptor }>{ descriptor.title || 'Untitled' }</DescriptorLink>
) }
/>
<Divider />
<CardContent>
{ descriptor.description && <Markdown className="mb-20" source={ displayPref.textLength ? descriptor.description.substring(0, displayPref.textLength) : descriptor.description }/> }
{ descriptor.key && <div className="font-bold">This is a key descriptor for access and utilization of PGR.</div> }
......
......@@ -5,7 +5,6 @@ import { DescriptorListLink, CropLink } from 'ui/catalog/Links';
import { Properties, PropertiesItem } from 'ui/catalog/Properties';
import Card, { CardHeader, CardContent } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import Markdown from 'ui/common/markdown';
const DescriptorListCard = ({descriptorList, className}: {descriptorList: DescriptorList, className: string}) => {
......@@ -15,7 +14,6 @@ const DescriptorListCard = ({descriptorList, className}: {descriptorList: Descri
<CardHeader title={ (
<DescriptorListLink to={ descriptorList }>{ descriptorList.title ? <Markdown basic source={ descriptorList.title } /> : 'Untitled' }</DescriptorListLink>
) } />
<Divider />
<CardContent>
<Markdown className="mb-20" textLength={ 200 } source={ descriptorList.description } />
<Properties>
......
......@@ -5,7 +5,7 @@ const header = {
fontFamily: 'Roboto-Bold',
fontSize: '1.71rem',
color: '#2B2924',
borderBottom: 'solid 1px gray',
borderBottom: 'solid 1px #e0e0e0',
};
const content = {
......@@ -15,7 +15,7 @@ const content = {
};
const action = {
borderTop: 'solid 1px gray',
borderTop: 'solid 1px #e0e0e0',
};
const Card = ({ ...props }) => (
......
......@@ -4,7 +4,6 @@ import { Crop } from 'model/crop.model';
import { Link } from 'react-router';
import Card, {CardHeader, CardContent} from 'ui/common/Card';
import Divider from 'material-ui/Divider';
const CropCard = ({crop, className = ''}: {crop: Crop, className: string}) => {
......@@ -19,7 +18,6 @@ const CropCard = ({crop, className = ''}: {crop: Crop, className: string}) => {
<Link to={ `/crops/${crop.uuid}/edit` }>{ crop.title }</Link>
: <span>{ crop.title }</span>
} />
<Divider/>
<CardContent>
{ crop.code }
</CardContent>
......
......@@ -3,7 +3,6 @@ import * as React from 'react';
import { Dataset } from 'model/dataset.model';
import Card, { CardHeader, CardContent } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import { Link } from 'react-router';
import Markdown from 'ui/common/markdown';
......@@ -36,7 +35,6 @@ class DatasetCard extends React.Component<IDatasetCardProps, any> {
)
}
/>
<Divider />
<CardContent>
<Markdown className="mb-20" textLength={ 200 } source={ dataset.description } />
<Properties>
......
......@@ -23,7 +23,6 @@ import VocabularyCard from 'ui/pages/vocabulary/c/VocabularyCard';
import Grid from 'material-ui/Grid';
import Card, { CardHeader, CardContent, CardActions } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import Button from 'material-ui/Button';
......@@ -109,7 +108,6 @@ class DisplayPage extends React.Component<IDisplayPageProps, any> {
<Grid item xs={ 12 }>
<Card square>
<CardHeader title={ descriptor.title } />
<Divider />
<CardContent>
{ ! descriptor.published && <h2>This descriptor list is not yet published!</h2> }
{ descriptor.key && <h2>This descriptor is a key descriptor for access and utilization of PGR.</h2> }
......
......@@ -15,7 +15,6 @@ import { Properties, PropertiesItem } from 'ui/catalog/Properties';
import Grid from 'material-ui/Grid';
import Card, {CardHeader, CardContent, CardActions} from 'ui/common/Card';
import Button from 'material-ui/Button';
import Divider from 'material-ui/Divider';
interface IPartnerPageProps extends React.ClassAttributes<any> {
classes: any;
......@@ -75,7 +74,6 @@ class PartnerPage extends React.Component<IPartnerPageProps, any> {
<CardHeader title={ (
<span>{ partner.shortName && <b>{ partner.shortName }</b> } { partner.name }</span>
) } />
<Divider />
<CardContent>
{ partner.description && <Markdown className="mb-20" source={ partner.description } /> }
......
import * as React from 'react';
import { withStyles } from 'material-ui/styles';
import Card, { CardHeader, CardContent } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import { Link } from 'react-router';
import { Partner } from 'model/partner.model';
......@@ -77,7 +76,6 @@ class PartnerCard extends React.Component<IPartnerCardProps, any> {
}
subheader={ partner.createdDate && <span>Registered <PrettyDate value={ partner.createdDate } /></span> }
/>
<Divider />
<CardContent>
{ partner.description && <Markdown textLength={ 200 } source={ partner.description } /> }
</CardContent>
......
......@@ -16,7 +16,6 @@ import { VocabularyLink } from 'ui/catalog/Links';
import Grid from 'material-ui/Grid';
import Card, { CardHeader, CardContent, CardActions } from 'ui/common/Card';
import Divider from 'material-ui/Divider';
import Button from 'material-ui/Button';
interface IDisplayPageProps extends React.ClassAttributes<any> {
......@@ -83,7 +82,6 @@ class DisplayPage extends React.Component<IDisplayPageProps, any> {
<span>{ vocabulary.title }
<small>{ vocabulary.versionTag }</small></span>
) }/>
<Divider/>
<CardContent className={ classes.cardContent }>
{ vocabulary.description && <Markdown source={ vocabulary.description }/> }
......
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