showAuthor defaults
This commit is contained in:
1 parent
a15f030956
commit
5e8ee6eec9
2 files changed
+3
-4
No files matched your search
@@ -25,7 +25,6 @@ type Props = {
|
||||
|
||||
const Index: NextPage<Props> = props => (
|
||||
<App
|
||||
showAuthor={true}
|
||||
contentStyle={{
|
||||
marginTop: 'var(--size-l)'
|
||||
}}
|
||||
|
||||
@@ -15,13 +15,13 @@ const Navigation = dynamic(() => import('../Navigation').then(mod => mod.Navigat
|
||||
})
|
||||
|
||||
export interface IAppProps {
|
||||
showAuthor: boolean
|
||||
showAuthor?: boolean
|
||||
wide?: boolean
|
||||
contentStyle?: React.CSSProperties
|
||||
breadcrumbs?: IBreadcumbsPart[]
|
||||
}
|
||||
|
||||
export const App: React.FC<IAppProps> = props => {
|
||||
export const App: React.FC<IAppProps> = ({ showAuthor = false, ...props }) => {
|
||||
const hideBreadcrumbs = useMobile()
|
||||
const router = useRouter()
|
||||
const wide = props.wide ?? false
|
||||
@@ -51,7 +51,7 @@ export const App: React.FC<IAppProps> = props => {
|
||||
)}
|
||||
footer={(
|
||||
<Footer
|
||||
showAuthor={props.showAuthor}
|
||||
showAuthor={showAuthor}
|
||||
/>
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user