Skip to content

Commit

Permalink
title
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Jul 3, 2024
1 parent 8209717 commit 280c1d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import pckg from '../package.json';
import dpckg from '@deep-foundation/deepcase/package.json';
import { CytoEditor } from '@deep-foundation/deepcase/imports/cyto/editor';
import { useDeepPath } from '../src/provider.tsx';
import Head from 'next/head';

const CyberDeepProvider = dynamic(() => import('@deep-foundation/deeplinks/imports/cyber').then(m => m.CyberDeepProvider), {
ssr: false,
Expand Down Expand Up @@ -106,9 +107,17 @@ export function Content({
1000,
) || [];

// const [title, setTitle] = useState('');
// useEffect(() => {(async () => {
// if (deep.linkId) setTitle(await deep.name(spaceId));
// })()}, [spaceId, deep]);

return (<React.Fragment
key={`${spaceId}-${deep.linkId}`}
>
<Head>
<title>{deep.nameLocal(spaceId)}</title>
</Head>
<DeepLoader
spaceId={spaceId}
/>
Expand Down

0 comments on commit 280c1d2

Please sign in to comment.