diff --git a/package.json b/package.json index 7e6b3b47..c907114e 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@nanostores/persistent": "^0.7.0", "@nanostores/router": "^0.7.0", "@nanostores/solid": "^0.3.0", + "@solid-primitives/memo": "^1.0.2", "axios": "^0.27.2", "google-translate-api-x": "^10.4.1", "loglevel": "^1.8.0", diff --git a/src/components/Feed/Beside.tsx b/src/components/Feed/Beside.tsx index bfa3a8c3..e4f894f8 100644 --- a/src/components/Feed/Beside.tsx +++ b/src/components/Feed/Beside.tsx @@ -10,7 +10,7 @@ import { Icon } from '../Nav/Icon' import { t } from '../../utils/intl' interface BesideProps { - title: string + title?: string values: any[] beside: Shout wrapper: 'topic' | 'author' | 'article' | 'top-article' diff --git a/src/components/Layouts/MainLayout.tsx b/src/components/Layouts/MainLayout.tsx index 355e5a19..d2f4659d 100644 --- a/src/components/Layouts/MainLayout.tsx +++ b/src/components/Layouts/MainLayout.tsx @@ -3,21 +3,27 @@ import { Header } from '../Nav/Header' import { Footer } from '../Discours/Footer' import '../../styles/app.scss' +import { Show } from 'solid-js' -type Props = { +type MainLayoutProps = { headerTitle?: string children: JSX.Element isHeaderFixed?: boolean + hideFooter?: boolean } -export const MainLayout = (props: Props) => { +export const MainLayout = (props: MainLayoutProps) => { const isHeaderFixed = props.isHeaderFixed !== undefined ? props.isHeaderFixed : true return ( <>
-
{props.children}
-