footer / block / contacts refactoring
This commit is contained in:
1 parent
d0a11deae8
commit
48f7e971c9
8 files changed
+89
-70
No files matched your search
@@ -1,20 +0,0 @@
|
||||
import { Footer } from '../Footer'
|
||||
import { useContext } from 'react'
|
||||
import { ConfigContext } from 'src/context/ConfigContext'
|
||||
|
||||
export type AppFooterProps = {
|
||||
showAuthor: boolean
|
||||
}
|
||||
|
||||
export const AppFooter: React.FC<AppFooterProps> = props => {
|
||||
const config = useContext(ConfigContext)
|
||||
|
||||
return (
|
||||
<Footer
|
||||
showAuthor={props.showAuthor}
|
||||
address={config.address}
|
||||
telephone={config.telephone}
|
||||
email={config.email}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import { Wrapper } from '../Wrapper'
|
||||
import { Header } from './Header'
|
||||
import { ConfigContext } from 'src/context/ConfigContext'
|
||||
import config from 'src/config'
|
||||
import { AppFooter } from './AppFooter'
|
||||
import { Footer } from '../Footer'
|
||||
|
||||
const Navigation = dynamic(() => import('../Navigation').then(mod => mod.Navigation), {
|
||||
ssr: false,
|
||||
@@ -33,7 +33,7 @@ export const App: React.FC<IAppProps> = props => {
|
||||
</Header>
|
||||
)}
|
||||
footer={(
|
||||
<AppFooter
|
||||
<Footer
|
||||
showAuthor={props.showAuthor}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user