Update board-nav.tsx

This commit is contained in:
plebeius.eth
2024-04-08 18:09:25 +02:00
parent 728fab09c7
commit 3fe6582d9b
+3 -3
View File
@@ -1,10 +1,9 @@
import { Link, useNavigate } from 'react-router-dom';
import { Link, useNavigate, useParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { Subplebbit } from '@plebbit/plebbit-react-hooks';
import styles from './board-nav.module.css';
interface BoardNavProps {
address?: string | undefined;
subplebbits: (Subplebbit | undefined)[];
currentSubplebbit?: string | undefined;
}
@@ -77,7 +76,8 @@ const BoardNavMobile = ({ subplebbits, currentSubplebbit }: BoardNavProps) => {
);
};
const BoardNav = ({ address, subplebbits }: BoardNavProps) => {
const BoardNav = ({ subplebbits }: BoardNavProps) => {
const { subplebbitAddress: address } = useParams();
return (
<>
<BoardNavDesktop subplebbits={subplebbits} />