* feat: Collection to standard header feat: Sticky tabs * chore: Document to standard header * chore: Dashboard -> Home chore: Scene component * chore: Trash, Templates, Drafts * fix: Mobile improvements * fix: Content showing at sides and occassionally ontop of sticky headers
33 lines
1002 B
JavaScript
33 lines
1002 B
JavaScript
// @flow
|
|
import { observer } from "mobx-react";
|
|
import { TrashIcon } from "outline-icons";
|
|
import * as React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import Empty from "components/Empty";
|
|
import Heading from "components/Heading";
|
|
import PaginatedDocumentList from "components/PaginatedDocumentList";
|
|
import Scene from "components/Scene";
|
|
import Subheading from "components/Subheading";
|
|
import useStores from "hooks/useStores";
|
|
|
|
function Trash() {
|
|
const { t } = useTranslation();
|
|
const { documents } = useStores();
|
|
|
|
return (
|
|
<Scene icon={<TrashIcon color="currentColor" />} title={t("Trash")}>
|
|
<Heading>{t("Trash")}</Heading>
|
|
<PaginatedDocumentList
|
|
documents={documents.deleted}
|
|
fetch={documents.fetchDeleted}
|
|
heading={<Subheading>{t("Documents")}</Subheading>}
|
|
empty={<Empty>{t("Trash is empty at the moment.")}</Empty>}
|
|
showCollection
|
|
showTemplate
|
|
/>
|
|
</Scene>
|
|
);
|
|
}
|
|
|
|
export default observer(Trash);
|