Meta titles and desc
This commit is contained in:
6
frontend/pages/vendors/index.js
vendored
6
frontend/pages/vendors/index.js
vendored
@@ -35,6 +35,7 @@ import {
|
||||
Tr,
|
||||
} from '@chakra-ui/react'
|
||||
import { useDebouncedCallback, useLocalStorageValue } from '@react-hookz/web'
|
||||
import Head from 'next/head'
|
||||
import { useRouter } from 'next/router'
|
||||
import { TbCheck, TbFilter, TbFilterEdit, TbLayoutGrid, TbLayoutList, TbMoodSad, TbSearch, TbX } from 'react-icons/tb'
|
||||
import useSWR from 'swr'
|
||||
@@ -66,7 +67,7 @@ export const getStaticProps = async () => {
|
||||
return { props: { categories } }
|
||||
}
|
||||
|
||||
export default function VendorsPage({ categories }) {
|
||||
export default function VendorsPage({ globals, categories }) {
|
||||
const router = useRouter()
|
||||
const {
|
||||
query: { page = 1, category = '', q: search = '' },
|
||||
@@ -135,6 +136,9 @@ export default function VendorsPage({ categories }) {
|
||||
|
||||
return (
|
||||
<Box className="vendors">
|
||||
<Head>
|
||||
<title>{['Vendors', globals.meta_title].join(' — ')}</title>
|
||||
</Head>
|
||||
<Flex alignItems="center" justifyContent="space-between" direction={['column', 'row']} mb="5" gap="5">
|
||||
<Heading size="lg">Vendors</Heading>
|
||||
<Box>{isValidating && <Spinner />}</Box>
|
||||
|
||||
Reference in New Issue
Block a user