home page no wide
This commit is contained in:
1 parent
d11981e2cc
commit
b945faded0
2 files changed
+2
-3
No files matched your search
+1
-1
@@ -18,7 +18,7 @@ type Props = {
|
|||||||
const Index: NextPage<Props> = props => (
|
const Index: NextPage<Props> = props => (
|
||||||
<App
|
<App
|
||||||
showAuthor={true}
|
showAuthor={true}
|
||||||
wide={true}
|
wide={false}
|
||||||
>
|
>
|
||||||
<Head>
|
<Head>
|
||||||
<title>{props.title}</title>
|
<title>{props.title}</title>
|
||||||
|
|||||||
@@ -21,10 +21,9 @@ export interface IAppProps {
|
|||||||
breadcrumbs?: IBreadcumbsPart[]
|
breadcrumbs?: IBreadcumbsPart[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export const App: React.FC<IAppProps> = ({ showAuthor = false, ...props }) => {
|
export const App: React.FC<IAppProps> = ({ showAuthor = false, wide = false, ...props }) => {
|
||||||
const hideBreadcrumbs = useMobile()
|
const hideBreadcrumbs = useMobile()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const wide = props.wide ?? false
|
|
||||||
const blockStyle = {
|
const blockStyle = {
|
||||||
justifyContent: 'center'
|
justifyContent: 'center'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user