showAuthor defaults

This commit is contained in:
tmshv committed 2020-03-03 05:25:15 +03:00
1 parent a15f030956
commit 5e8ee6eec9
2 files changed
+3 -4

No files matched your search

-1
View File
@@ -25,7 +25,6 @@ type Props = {
const Index: NextPage<Props> = props => (
<App
showAuthor={true}
contentStyle={{
marginTop: 'var(--size-l)'
}}
+3 -3
View File
@@ -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}
/>
)}
>