diff --git a/packages/docz-theme-default/src/components/ui/Page.tsx b/packages/docz-theme-default/src/components/ui/Page.tsx index 27c5da0aa..88ca3821c 100644 --- a/packages/docz-theme-default/src/components/ui/Page.tsx +++ b/packages/docz-theme-default/src/components/ui/Page.tsx @@ -47,8 +47,8 @@ const EditPage = styled(ButtonLink.withComponent('a'))` ${p => p.theme.docz.mq({ visibility: ['hidden', 'hidden', 'visible'], - top: [0, -60, 10], - right: [0, 0, 32], + top: [0, -60, 32], + right: [0, 0, 40], })}; ` @@ -73,7 +73,7 @@ export const Page: SFC = ({ return ( - {({ repository, ...config }) => ( + {({ repository, ...config }: { repository: string }) => (
{repository && } {!fullpage && } diff --git a/packages/docz-theme-default/src/index.tsx b/packages/docz-theme-default/src/index.tsx index d8f40e853..924a70789 100644 --- a/packages/docz-theme-default/src/index.tsx +++ b/packages/docz-theme-default/src/index.tsx @@ -18,7 +18,7 @@ const mergeTheme = (config: any) => (old: any) => ({ const Theme = () => ( - {config => ( + {(config: object) => (