Share links list WIP

This commit is contained in:
Tom Moor
2018-05-22 23:01:49 -07:00
parent b40b77b228
commit d93815ca0a
13 changed files with 224 additions and 11 deletions

View File

@@ -15,5 +15,9 @@ export default (props: Props) => {
cursor: 'pointer',
};
return <a {...props} style={style}>{props.children}</a>;
return (
<a {...props} style={style}>
{props.children}
</a>
);
};

View File

@@ -5,9 +5,9 @@ import { presentUser } from '.';
function present(ctx: Object, share: Share) {
return {
id: share.id,
user: presentUser(ctx, share.user),
documentTitle: share.document.title,
url: `${process.env.URL}/share/${share.id}`,
createdBy: presentUser(ctx, share.user),
createdAt: share.createdAt,
updatedAt: share.updatedAt,
};