diff --git a/index.html b/index.html index f0f04e2..698c728 100644 --- a/index.html +++ b/index.html @@ -51,7 +51,7 @@ "url": "https://sag24.ru", "logo": "https://sag24.ru/favicon.svg", "image": "https://sag24.ru/og-image.svg", - "telephone": "+74953637476", + "telephone": ["+74953637476", "+74953637335", "+74959454456"], "email": "info@sag24.ru", "address": { "@type": "PostalAddress", @@ -97,7 +97,7 @@ }, "contactPoint": { "@type": "ContactPoint", - "telephone": "+74953637476", + "telephone": ["+74953637476", "+74953637335", "+74959454456"], "contactType": "customer service", "availableLanguage": ["Russian", "English"] } diff --git a/src/App.jsx b/src/App.jsx index 317b3e0..5ac3327 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,8 +1,9 @@ -import React, { useEffect } from 'react' +import React, { useEffect, useState } from 'react' import { LanguageProvider, useLanguage } from './contexts/LanguageContext.jsx' import Navigation from './components/Navigation.jsx' import Footer from './components/Footer.jsx' import Home from './pages/Home.jsx' +import NotFound from './pages/NotFound.jsx' function LangSync() { const { lang } = useLanguage() @@ -12,13 +13,25 @@ function LangSync() { return null } +function Router() { + const [path, setPath] = useState(window.location.pathname) + useEffect(() => { + const handler = () => setPath(window.location.pathname) + window.addEventListener('popstate', handler) + return () => window.removeEventListener('popstate', handler) + }, []) + + const isHome = path === '/' || path === '/index.html' + return isHome ? : +} + export default function App() { return (
- +