mirror of
https://github.com/plebbit/seedit.git
synced 2026-02-15 16:31:24 -05:00
feat(subplebbits): add page title
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user