fix all expo path
This commit is contained in:
parent
1a2d197e0c
commit
e40df167d8
|
@ -123,18 +123,15 @@ export const Expo = (props: Props) => {
|
||||||
loadMoreWithoutScrolling(LOAD_MORE_PAGE_SIZE)
|
loadMoreWithoutScrolling(LOAD_MORE_PAGE_SIZE)
|
||||||
setArticlesEndPage((prev) => prev + LOAD_MORE_PAGE_SIZE)
|
setArticlesEndPage((prev) => prev + LOAD_MORE_PAGE_SIZE)
|
||||||
}
|
}
|
||||||
|
console.log(props.layout)
|
||||||
return (
|
return (
|
||||||
<div class={styles.Expo}>
|
<div class={styles.Expo}>
|
||||||
<div class="wide-container">
|
<div class="wide-container">
|
||||||
<ul class={clsx('view-switcher')}>
|
<ul class={clsx('view-switcher')}>
|
||||||
<li class={clsx({ 'view-switcher__item--selected': !props.layout })}>
|
<li class={clsx({ 'view-switcher__item--selected': !props.layout })}>
|
||||||
<ConditionalWrapper
|
<a href={getPagePath(router, 'expo', { layout: '' })}>
|
||||||
condition={Boolean(props.layout)}
|
|
||||||
wrapper={(children) => <a href={getPagePath(router, 'expo', { layout: '' })}>{children}</a>}
|
|
||||||
>
|
|
||||||
<span class={clsx('linkReplacement')}>{t('All')}</span>
|
<span class={clsx('linkReplacement')}>{t('All')}</span>
|
||||||
</ConditionalWrapper>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class={clsx({ 'view-switcher__item--selected': props.layout === 'literature' })}>
|
<li class={clsx({ 'view-switcher__item--selected': props.layout === 'literature' })}>
|
||||||
<ConditionalWrapper
|
<ConditionalWrapper
|
||||||
|
|
Loading…
Reference in New Issue
Block a user