mirror of
https://github.com/sergeyyarkov/devthread.ru.git
synced 2026-10-11 10:19:13 +03:00
name
This commit is contained in:
parent
55681f0d84
commit
938c1b33dd
@ -1,12 +1,12 @@
|
||||
import React from 'react';
|
||||
import ContactsFrom from './ContactsForm/ContactsForm';
|
||||
import useSiteMetadata from '../../hooks/useSiteMetadata'
|
||||
import useSiteMetadataQuery from '../../hooks/useSiteMetadataQuery'
|
||||
import './Contacts.scss'
|
||||
|
||||
import MemoIcon from '../../images/memo-icon.svg'
|
||||
|
||||
const Contacts = () => {
|
||||
const { siteMetadata: { email } } = useSiteMetadata()
|
||||
const { siteMetadata: { email } } = useSiteMetadataQuery()
|
||||
|
||||
return (
|
||||
<div className="contacts">
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import React from 'react'
|
||||
import useSiteMetadata from '../../hooks/useSiteMetadata'
|
||||
import useSiteMetadataQuery from '../../hooks/useSiteMetadataQuery'
|
||||
import Header from '../Header/Header'
|
||||
import Footer from '../Footer/Footer'
|
||||
|
||||
const Layout = ({ children }) => {
|
||||
const { siteMetadata } = useSiteMetadata()
|
||||
const { siteMetadata } = useSiteMetadataQuery()
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import React from 'react';
|
||||
import useSiteMetadata from '../../hooks/useSiteMetadata'
|
||||
import useSiteMetadataQuery from '../../hooks/useSiteMetadataQuery'
|
||||
import PropTypes from 'prop-types'
|
||||
import { Helmet } from 'react-helmet'
|
||||
import { useLocation } from '@reach/router'
|
||||
|
||||
const SEO = ({ title, description }) => {
|
||||
const { pathname } = useLocation()
|
||||
const { siteMetadata } = useSiteMetadata()
|
||||
const { siteMetadata } = useSiteMetadataQuery()
|
||||
|
||||
const seo = {
|
||||
title: title || siteMetadata.title,
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import React from 'react';
|
||||
import useSiteMetadata from '../hooks/useSiteMetadata'
|
||||
import useSiteMetadataQuery from '../hooks/useSiteMetadataQuery'
|
||||
import SEO from '../components/SEO/SEO'
|
||||
import Layout from '../components/Layout/Layout'
|
||||
import Offers from '../components/Offers/Offers'
|
||||
import About from '../components/About/About'
|
||||
|
||||
const AboutPage = () => {
|
||||
const { siteMetadata: { title, menuLinks, email } } = useSiteMetadata()
|
||||
const { siteMetadata: { title, menuLinks, email } } = useSiteMetadataQuery()
|
||||
return (
|
||||
<Layout>
|
||||
<SEO title='О сайте' description='Этот сайт придуман для того, чтобы помочь вам разобраться с вашей проблемой и решить её. Сайт содержит в себе статьи и руководства.' />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user