fix: remove styled from ShadowBox

This commit is contained in:
RadoslavDimchev 2023-08-08 14:45:30 +03:00
parent 822f4cc805
commit 47cf20b601
1 changed files with 20 additions and 7 deletions

View File

@ -1,10 +1,23 @@
import { Stack, styled } from 'tamagui'
import { ReactNode } from 'react'
import { Stack } from 'tamagui'
const ShadowBox = styled(Stack, {
type ShadowBoxProps = {
children: ReactNode
}
const ShadowBox = ({ children }: ShadowBoxProps) => {
return (
<Stack
style={{
boxSizing: 'border-box',
borderRadius: '16px',
boxShadow: '0px 4px 20px 0px rgba(9, 16, 28, 0.08)',
width: '100%',
})
}}
>
{children}
</Stack>
)
}
export default ShadowBox