refactor: convert PageWrapper to tsx
This commit is contained in:
parent
96aca7a9eb
commit
f783891bb8
|
@ -1,22 +1,27 @@
|
||||||
import { XStack, YStack, styled } from 'tamagui'
|
import { Stack, XStack, YStack, styled } from 'tamagui'
|
||||||
import { TopBar } from './TopBar'
|
import TopBar from './TopBar'
|
||||||
|
import { ReactNode } from 'react'
|
||||||
|
|
||||||
const Background = styled('div', {
|
const Background = styled(Stack, {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'white',
|
||||||
width: '100vw',
|
width: '100vw',
|
||||||
})
|
})
|
||||||
|
|
||||||
const PageWrapper = ({ children }) => {
|
type PageWrapperProps = {
|
||||||
|
children: ReactNode
|
||||||
|
}
|
||||||
|
|
||||||
|
const PageWrapper = ({ children }: PageWrapperProps) => {
|
||||||
return (
|
return (
|
||||||
<Background>
|
<Background>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
border: '4px solid #09101C',
|
border: '4px solid #09101C',
|
||||||
'border-radius': '30px',
|
borderRadius: '30px',
|
||||||
padding: '0',
|
padding: 0,
|
||||||
margin: '0',
|
margin: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<YStack>
|
<YStack>
|
Loading…
Reference in New Issue