Commit 56c87a5b authored by Matija Obreza's avatar Matija Obreza
Browse files

Moved `<Section` to **ui/common/layout/Section**

parent 01bac888
......@@ -15,7 +15,7 @@ import { Creator } from 'model/creator.model';
import { Location } from 'model/location.model';
import Summary from './Summary';
import LocationMap from './LocationMap';
import Section from './Section';
import Section from 'ui/common/layout/Section';
import { DescriptorLink } from 'ui/common/Links';
import Markdown from 'ui/common/markdown';
......
......@@ -8,13 +8,13 @@ import { Descriptor } from 'model/descriptor.model';
import { VocabularyTerm } from 'model/vocabulary.model';
import Loading from 'ui/common/Loading';
import Section from 'ui/common/layout/Section';
import Markdown from 'ui/common/markdown';
import ContentHeaderWithButton from 'ui/common/heading/ContentHeaderWithButton';
import Grid from 'material-ui/Grid';
import Card, {CardHeader, CardContent} from 'material-ui/Card';
import Divider from 'material-ui/Divider';
import Paper from 'material-ui/Paper';
interface IDisplayPageProps extends React.ClassAttributes<any> {
......@@ -78,14 +78,15 @@ class DisplayPage extends React.Component<IDisplayPageProps, any> {
</Card>
</Grid>
{ terms && (
<Paper className="p-20">
{ terms.map((term) => (
<div key={ term.code }>{ term.code } &rarr; { term.title }</div>
)) }
</Paper>
) }
</Grid>
{ terms && (
<Section title="Allowed values" className="p-20">
{ terms.map((term) => (
<div key={ term.code }>{ term.code } &rarr; { term.title }</div>
)) }
</Section>
) }
</Grid>
}
</div>
);
}
......
......@@ -14,7 +14,7 @@ import ContentHeaderWithButton from 'ui/common/heading/ContentHeaderWithButton';
import Grid from 'material-ui/Grid';
import Card, {CardHeader, CardContent} from 'material-ui/Card';
import Section from 'ui/pages/dataset/dataset-detail/c/Section';
import Section from 'ui/common/layout/Section';
import Divider from 'material-ui/Divider';
interface IDescriptorListPageProps extends React.ClassAttributes<any> {
......
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