mirror of
https://github.com/docmost/docmost.git
synced 2025-11-26 07:51:09 +10:00
Share - WIP
This commit is contained in:
21
apps/client/src/pages/settings/shares/shares.tsx
Normal file
21
apps/client/src/pages/settings/shares/shares.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import SettingsTitle from "@/components/settings/settings-title.tsx";
|
||||
import { Helmet } from "react-helmet-async";
|
||||
import { getAppName } from "@/lib/config.ts";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import ShareList from "@/features/share/components/share-list.tsx";
|
||||
|
||||
export default function Shares() {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
<title>
|
||||
{t("Shares")} - {getAppName()}
|
||||
</title>
|
||||
</Helmet>
|
||||
<SettingsTitle title={t("Shares")} />
|
||||
<ShareList />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@ -2,7 +2,7 @@ import { useParams } from "react-router-dom";
|
||||
import { Helmet } from "react-helmet-async";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useShareQuery } from "@/features/share/queries/share-query.ts";
|
||||
import { Affix, Button, Container } from "@mantine/core";
|
||||
import { Container } from "@mantine/core";
|
||||
import React from "react";
|
||||
import ReadonlyPageEditor from "@/features/editor/readonly-page-editor.tsx";
|
||||
import { extractPageSlugId } from "@/lib";
|
||||
@ -36,17 +36,13 @@ export default function SingleSharedPage() {
|
||||
<title>{`${page?.icon || ""} ${page?.title || t("untitled")}`}</title>
|
||||
</Helmet>
|
||||
|
||||
<Container size={900} pt={50}>
|
||||
<Container size={900}>
|
||||
<ReadonlyPageEditor
|
||||
key={page.id}
|
||||
title={page.title}
|
||||
content={page.content}
|
||||
/>
|
||||
</Container>
|
||||
|
||||
<Affix position={{ bottom: 20, right: 20 }}>
|
||||
<Button variant="default">Powered by Docmost</Button>
|
||||
</Affix>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user