x
This commit is contained in:
1 parent
7e4e89e33c
commit
54ece53b52
3 files changed
+3
-3
No files matched your search
@@ -17,7 +17,7 @@ export default function ContactPage() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch(`/api/settings?lang=${lang}`)
|
fetch(`/api/settings?lang=${lang}`)
|
||||||
.then(res => res.ok ? res.json() : {})
|
.then(res => res.ok ? res.json() : {})
|
||||||
.then(data => {
|
.then((data: any) => {
|
||||||
const brand = data.brandName || ''
|
const brand = data.brandName || ''
|
||||||
setBrandName(brand)
|
setBrandName(brand)
|
||||||
const username = brand.toLowerCase().replace(/\s+/g, '')
|
const username = brand.toLowerCase().replace(/\s+/g, '')
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default function FaqPage() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch(`/api/settings?lang=${lang}`)
|
fetch(`/api/settings?lang=${lang}`)
|
||||||
.then(res => res.ok ? res.json() : {})
|
.then(res => res.ok ? res.json() : {})
|
||||||
.then(data => {
|
.then((data: any) => {
|
||||||
if (data.brandName) setBrandName(data.brandName)
|
if (data.brandName) setBrandName(data.brandName)
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { SUPPORTED_LOCALES } from './locales';
|
|||||||
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000';
|
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000';
|
||||||
|
|
||||||
type SeoMetadataProps = {
|
type SeoMetadataProps = {
|
||||||
title: string;
|
title?: string;
|
||||||
description: string;
|
description: string;
|
||||||
path: string; // e.g. '/shop', '/category/1', or ''
|
path: string; // e.g. '/shop', '/category/1', or ''
|
||||||
lang: string;
|
lang: string;
|
||||||
|
|||||||
Reference in new issue
Block a user