Files
outline/app/scenes/Settings/components/ShareListItem.js
Tom Moor 5cb04d7ac1 New login screen (#1331)
* wip

* feat: first draft of auth.config

* chore: auth methodS

* chore: styling

* styling, styling, styling

* feat: Auth notices

* chore: Remove server-rendered pages, move shared/components -> components

* lint

* cleanup

* cleanup

* fix: Remove unused component

* fix: Ensure env variables in prod too

* style tweaks

* fix: Entering SSO email into login form fails
fix: Tweak language around guest signin
2020-07-09 22:33:07 -07:00

29 lines
623 B
JavaScript

// @flow
import * as React from "react";
import ShareMenu from "menus/ShareMenu";
import ListItem from "components/List/Item";
import Time from "components/Time";
import Share from "models/Share";
type Props = {
share: Share,
};
const ShareListItem = ({ share }: Props) => {
return (
<ListItem
key={share.id}
title={share.documentTitle}
subtitle={
<React.Fragment>
Shared <Time dateTime={share.createdAt} /> ago by{" "}
{share.createdBy.name}
</React.Fragment>
}
actions={<ShareMenu share={share} />}
/>
);
};
export default ShareListItem;