Commit 47e091d5 authored by Matija Obreza's avatar Matija Obreza
Browse files

Moved Properties, PropertiesItem to ui/common

parent adadcc2e
......@@ -10,7 +10,7 @@ import DialogTitle from '@material-ui/core/DialogTitle';
import {permissions, addPermission, autocomplete} from 'actions/permission';
import {AclEntry, AclObjectIdentity, SidPermissions} from 'model/acl.model';
import Loading from 'ui/common/Loading';
import {Properties, PropertiesItem} from 'ui/catalog/Properties';
import {Properties, PropertiesItem} from 'ui/common/Properties';
import PermissionsTableForm from 'ui/common/permission/PermissionsTableForm';
interface IPermissionsProps extends React.ClassAttributes<any> {
......
......@@ -3,13 +3,20 @@ import * as React from 'react';
import Subset from 'model/Subset';
import { SubsetLink } from 'ui/genesys/Links';
import Card, {CardHeader, CardContent, CardActions} from 'ui/common/Card';
import Markdown from 'ui/common/markdown';
import { Properties, PropertiesItem } from 'ui/common/Properties';
const SubsetCard = ({subset, ...other}: { subset: Subset } & React.ClassAttributes<any>) => {
return (
<Card>
<CardHeader title={ <SubsetLink to={ subset } /> } />
<CardContent>
<div>{ subset.description }</div>
<Markdown source={ subset.description } />
<Properties>
<PropertiesItem title="Publisher">{ subset.publisher }</PropertiesItem>
<PropertiesItem title="License">{ subset.rights }</PropertiesItem>
</Properties>
</CardContent>
{ false &&
<CardActions>
......
Markdown is supported
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