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, {
|
type ShadowBoxProps = {
|
||||||
boxSizing: 'border-box',
|
children: ReactNode
|
||||||
borderRadius: '16px',
|
}
|
||||||
boxShadow: '0px 4px 20px 0px rgba(9, 16, 28, 0.08)',
|
|
||||||
width: '100%',
|
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
|
export default ShadowBox
|
||||||
|
|
Loading…
Reference in New Issue