fix: remove old page wrapper
This commit is contained in:
parent
482b6b6954
commit
c8ba74c277
|
@ -1,43 +0,0 @@
|
|||
import { Stack, XStack, styled } from 'tamagui'
|
||||
import { ReactNode } from 'react'
|
||||
|
||||
const Background = styled(Stack, {
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
backgroundColor: 'white',
|
||||
width: '100vw',
|
||||
})
|
||||
|
||||
type PageWrapperProps = {
|
||||
children: ReactNode
|
||||
}
|
||||
|
||||
const PageWrapper = ({ children }: PageWrapperProps) => {
|
||||
return (
|
||||
<Background>
|
||||
<div
|
||||
style={{
|
||||
border: '4px solid #09101C',
|
||||
borderRadius: '30px',
|
||||
padding: 0,
|
||||
margin: 0,
|
||||
}}
|
||||
>
|
||||
<XStack
|
||||
space={'$8'}
|
||||
style={{
|
||||
background: 'linear-gradient(180deg, rgba(245,242,254,1) 0%, rgba(255,255,255,1) 100%)',
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
justifyContent: 'end',
|
||||
alignItems: 'center',
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</XStack>
|
||||
</div>
|
||||
</Background>
|
||||
)
|
||||
}
|
||||
|
||||
export default PageWrapper
|
Loading…
Reference in New Issue