mirror of
https://github.com/docmost/docmost.git
synced 2025-11-26 03:51:09 +10:00
WIP
This commit is contained in:
@ -3,6 +3,9 @@ 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";
|
||||
import { Alert, Text } from "@mantine/core";
|
||||
import { IconInfoCircle } from "@tabler/icons-react";
|
||||
import React from "react";
|
||||
|
||||
export default function Shares() {
|
||||
const { t } = useTranslation();
|
||||
@ -11,10 +14,17 @@ export default function Shares() {
|
||||
<>
|
||||
<Helmet>
|
||||
<title>
|
||||
{t("Shares")} - {getAppName()}
|
||||
{t("Public sharing")} - {getAppName()}
|
||||
</title>
|
||||
</Helmet>
|
||||
<SettingsTitle title={t("Shares")} />
|
||||
<SettingsTitle title={t("Public sharing")} />
|
||||
|
||||
<Alert variant="light" color="blue" icon={<IconInfoCircle />}>
|
||||
{t(
|
||||
"Publicly shared pages from spaces you are a member of will appear here",
|
||||
)}
|
||||
</Alert>
|
||||
|
||||
<ShareList />
|
||||
</>
|
||||
);
|
||||
|
||||
@ -22,7 +22,7 @@ export default function SingleSharedPage() {
|
||||
if (shareId && data) {
|
||||
if (data.share.key !== shareId) {
|
||||
// affects parent share, what to do?
|
||||
//navigate(`/share/${data.share.key}/${pageSlug}`);
|
||||
navigate(`/share/${data.share.key}/${pageSlug}`);
|
||||
}
|
||||
}
|
||||
}, [shareId, data]);
|
||||
@ -41,7 +41,8 @@ export default function SingleSharedPage() {
|
||||
return (
|
||||
<div>
|
||||
<Helmet>
|
||||
<title>{`${data?.page?.icon || ""} ${data?.page?.title || t("untitled")}`}</title>
|
||||
<title>{`${data?.page?.title || t("untitled")}`}</title>
|
||||
{!data?.share.searchIndexing && <meta name="robots" content="noindex" />}
|
||||
</Helmet>
|
||||
|
||||
<Container size={900}>
|
||||
|
||||
Reference in New Issue
Block a user