fix: remove styled from ShadowBox
This commit is contained in:
parent
822f4cc805
commit
47cf20b601
|
@ -1,10 +1,23 @@
|
|||
import { Stack, styled } from 'tamagui'
|
||||
import { ReactNode } from 'react'
|
||||
import { Stack } from 'tamagui'
|
||||
|
||||
const ShadowBox = styled(Stack, {
|
||||
boxSizing: 'border-box',
|
||||
borderRadius: '16px',
|
||||
boxShadow: '0px 4px 20px 0px rgba(9, 16, 28, 0.08)',
|
||||
width: '100%',
|
||||
})
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue