This commit is contained in:
tonyrewin 2022-11-13 08:15:21 +03:00
parent cddc9d6a67
commit 6595b64af0

View File

@ -15,7 +15,7 @@ import { Row1 } from '../Feed/Row1'
import { loadLayoutShouts } from '../../stores/zine/layouts' import { loadLayoutShouts } from '../../stores/zine/layouts'
type LayoutPageSearchParams = { type LayoutPageSearchParams = {
layout: 'audio' | 'video' | 'artworks' | 'literature' layout: 'audio' | 'video' | 'image' | 'literature'
} }
interface LayoutProps { interface LayoutProps {
@ -57,7 +57,7 @@ export const LayoutView = (props: LayoutProps) => {
const l = searchParams().layout const l = searchParams().layout
if (l === 'audio') return t('Audio') if (l === 'audio') return t('Audio')
if (l === 'video') return t('Video') if (l === 'video') return t('Video')
if (l === 'artworks') return t('Artworks') if (l === 'image') return t('Artworks')
return t('Literature') return t('Literature')
}) })
@ -76,8 +76,8 @@ export const LayoutView = (props: LayoutProps) => {
<li classList={{ selected: searchParams().layout === 'video' }}> <li classList={{ selected: searchParams().layout === 'video' }}>
<a href="/expo/video">{t('Video')}</a> <a href="/expo/video">{t('Video')}</a>
</li> </li>
<li classList={{ selected: searchParams().layout === 'artworks' }}> <li classList={{ selected: searchParams().layout === 'image' }}>
<a href="/expo/artworks">{t('Artworks')}</a> <a href="/expo/image">{t('Artworks')}</a>
</li> </li>
<li classList={{ selected: searchParams().layout === 'literature' || !searchParams().layout }}> <li classList={{ selected: searchParams().layout === 'literature' || !searchParams().layout }}>
<a href="/expo/literature">{t('Literature')}</a> <a href="/expo/literature">{t('Literature')}</a>