feat(subplebbits): add page title

This commit is contained in:
plebeius.eth
2024-01-03 12:30:00 +01:00
parent 0304b5cde5
commit 1eb75fa92a

View File

@@ -1,4 +1,4 @@
import { useMemo } from 'react';
import { useEffect, useMemo } from 'react';
import { Link, useLocation } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { Subplebbit as SubplebbitType, useAccountSubplebbits, useSubplebbitStats } from '@plebbit/plebbit-react-hooks';
@@ -85,6 +85,10 @@ const Subplebbit = ({ subplebbit }: SubplebbitProps) => {
const isOnline = updatedAt && updatedAt > Date.now() / 1000 - 60 * 30;
const offlineNotice = updatedAt && t('community_last_seen', { dateAgo: getFormattedTimeAgo(updatedAt) });
useEffect(() => {
document.title = `${t('communities')} - seedit`;
}, [t]);
return (
<div className={styles.subplebbit}>
<div className={styles.midcol}>