add removed snl banner
This commit is contained in:
parent
0ee056b2a1
commit
46f235d60c
|
@ -24,7 +24,7 @@ export default function Snl ({ ignorePreference }) {
|
||||||
return (
|
return (
|
||||||
<div className='d-flex'>
|
<div className='d-flex'>
|
||||||
<Alert
|
<Alert
|
||||||
variant='info' className='fw-bold mb-3 d-flex py-2 flex-shrink align-items-center'
|
variant='info' className='fw-bold mb-3 d-flex flex-shrink align-items-center'
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
setShow(undefined)
|
setShow(undefined)
|
||||||
window.localStorage.setItem('snl', new Date())
|
window.localStorage.setItem('snl', new Date())
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { getGetServerSideProps } from '../../api/ssrApollo'
|
||||||
import Items from '../../components/items'
|
import Items from '../../components/items'
|
||||||
import Layout from '../../components/layout'
|
import Layout from '../../components/layout'
|
||||||
import { SUB_ITEMS } from '../../fragments/subs'
|
import { SUB_ITEMS } from '../../fragments/subs'
|
||||||
|
import Snl from '../../components/snl'
|
||||||
|
|
||||||
export const getServerSideProps = getGetServerSideProps(SUB_ITEMS, null,
|
export const getServerSideProps = getGetServerSideProps(SUB_ITEMS, null,
|
||||||
(data, vars) => vars.sub && !data.sub)
|
(data, vars) => vars.sub && !data.sub)
|
||||||
|
@ -13,6 +14,7 @@ export default function Sub ({ ssrData }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout sub={variables.sub}>
|
<Layout sub={variables.sub}>
|
||||||
|
<Snl />
|
||||||
<Items ssrData={ssrData} variables={variables} />
|
<Items ssrData={ssrData} variables={variables} />
|
||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue