diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-01-07 23:15:33 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-01-07 23:15:33 +0100 |
commit | cb3a0c38944c9eb61bc3e7dc02ca28fc6922993f (patch) | |
tree | fe6568d4cd65812c3327f343459fec13c875dec2 /src/components/page.tsx | |
parent | 95aed715672265fdb3f4e31d478fb426e28052ab (diff) |
balk :tada:
Diffstat (limited to 'src/components/page.tsx')
-rw-r--r-- | src/components/page.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/page.tsx b/src/components/page.tsx index 73981c2..37634a3 100644 --- a/src/components/page.tsx +++ b/src/components/page.tsx @@ -1,8 +1,9 @@ -import { Component, ReactNode } from 'react'; +import { Component, CSSProperties, ReactNode } from 'react'; interface CenteredPageProps { width?: number; children?: ReactNode; + style?: CSSProperties; } export function CenteredPage (props: CenteredPageProps) { @@ -12,7 +13,8 @@ export function CenteredPage (props: CenteredPageProps) { }}> <div className="CenteredPageInner" style={{ margin: "0 6px", - lineHeight: 0 + lineHeight: 0, + ...props.style }}>{props.children}</div> </div>; } |