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