mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update board-nav.tsx
This commit is contained in:
@@ -23,7 +23,7 @@ const BoardNavDesktop = ({ subplebbits }: BoardNavProps) => {
|
|||||||
return (
|
return (
|
||||||
<span key={index}>
|
<span key={index}>
|
||||||
{index === 0 ? null : ' '}
|
{index === 0 ? null : ' '}
|
||||||
<Link to={`/p/${address}${isInCatalogView && '/catalog'}`} title={title || ''}>
|
<Link to={`/p/${address}${isInCatalogView ? '/catalog' : ''}`} title={title || ''}>
|
||||||
{address.includes('.') ? address : title || address.slice(0, 10).concat('...')}
|
{address.includes('.') ? address : title || address.slice(0, 10).concat('...')}
|
||||||
</Link>
|
</Link>
|
||||||
{index !== subplebbits.length - 1 ? ' /' : null}
|
{index !== subplebbits.length - 1 ? ' /' : null}
|
||||||
@@ -49,7 +49,7 @@ const BoardNavMobile = ({ subplebbits, currentSubplebbit }: BoardNavProps) => {
|
|||||||
const isInCatalogView = isCatalogView(useLocation().pathname, useParams());
|
const isInCatalogView = isCatalogView(useLocation().pathname, useParams());
|
||||||
|
|
||||||
const boardSelect = (
|
const boardSelect = (
|
||||||
<select value={currentSubplebbit || 'all'} onChange={(e) => navigate(`/p/${e.target.value}${isInCatalogView && '/catalog'}`)}>
|
<select value={currentSubplebbit || 'all'} onChange={(e) => navigate(`/p/${e.target.value}${isInCatalogView ? '/catalog' : ''}`)}>
|
||||||
{!currentSubplebbitIsInList && currentSubplebbit && <option value={currentSubplebbit}>{displaySubplebbitAddress}</option>}
|
{!currentSubplebbitIsInList && currentSubplebbit && <option value={currentSubplebbit}>{displaySubplebbitAddress}</option>}
|
||||||
<option value='all'>{t('all')}</option>
|
<option value='all'>{t('all')}</option>
|
||||||
<option value='subscriptions'>{t('subscriptions')}</option>
|
<option value='subscriptions'>{t('subscriptions')}</option>
|
||||||
|
|||||||
Reference in New Issue
Block a user