refactor: rename subplebbit to board

This commit is contained in:
plebeius.eth
2024-04-13 20:44:54 +02:00
parent 3ae39b092c
commit 3ad540f17e
5 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import Catalog from './views/catalog';
import Home from './views/home';
import PostPage from './views/post-page';
import Settings from './views/settings';
import Subplebbit from './views/subplebbit';
import Board from './views/board';
import BoardNav from './components/board-nav';
import BoardBanner from './components/board-banner';
import { DesktopBoardButtons } from './components/board-buttons';
@@ -55,7 +55,7 @@ const App = () => {
<Routes>
<Route path='/' element={<Home subplebbits={subplebbits} />} />
<Route element={boardLayout}>
<Route path='/p/:subplebbitAddress' element={<Subplebbit />} />
<Route path='/p/:subplebbitAddress' element={<Board />} />
<Route path='/p/:subplebbitAddress/c/:commentCid' element={<PostPage />} />
<Route path='/p/:subplebbitAddress/description' element={<PostPage />} />
<Route path='/p/:subplebbitAddress/rules' element={<PostPage />} />
@@ -3,7 +3,7 @@ import { useParams } from 'react-router-dom';
import { useFeed, useSubplebbit } from '@plebbit/plebbit-react-hooks';
import { Virtuoso, VirtuosoHandle, StateSnapshot } from 'react-virtuoso';
import { useTranslation } from 'react-i18next';
import styles from './subplebbit.module.css';
import styles from './board.module.css';
import useFeedStateString from '../../hooks/use-feed-state-string';
import LoadingEllipsis from '../../components/loading-ellipsis';
import Post from '../../components/post';
+1
View File
@@ -0,0 +1 @@
export { default } from './board';
-1
View File
@@ -1 +0,0 @@
export { default } from './subplebbit';