diff options
Diffstat (limited to 'components/page.tsx')
-rw-r--r-- | components/page.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/components/page.tsx b/components/page.tsx index 506e2db..b8e3dac 100644 --- a/components/page.tsx +++ b/components/page.tsx @@ -1,12 +1,11 @@ import { Component, CSSProperties, ReactNode } from 'react'; -interface CenteredPageProps { +export function CenteredPage(props: { width?: number; children?: ReactNode; style?: CSSProperties; -} - -export function CenteredPage(props: CenteredPageProps) { + className?: string; +}) { return <div className='CenteredPageOuter' style={{ @@ -15,7 +14,7 @@ export function CenteredPage(props: CenteredPageProps) { }} > <div - className='CenteredPageInner' + className={'CenteredPageInner ' + props.className} style={{ margin: '0 6px', lineHeight: 0, |