aboutsummaryrefslogtreecommitdiff
path: root/components/page.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-20 15:00:46 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-20 15:00:46 +0200
commit319938d57b8cd225de1dd3f63433f6561f92311e (patch)
treeed2815c270c013fd30bd880fb0f7ca97e68c76ef /components/page.tsx
parent29436b8bdcba28d0c6362a2c6a68268411be7293 (diff)
new game dialog not broken anyore
Diffstat (limited to 'components/page.tsx')
-rw-r--r--components/page.tsx9
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,