update components with theme property

This commit is contained in:
Abhinav 2022-04-30 11:14:32 +05:30
parent 5eb29e1f16
commit 8e08fb1974
3 changed files with 6 additions and 5 deletions

View file

@ -174,12 +174,13 @@ const CollectionOptions = (props: CollectionOptionsProps) => {
MenuListProps={{
'aria-labelledby': 'collection-options',
}}>
<Paper sx={{ borderRadius: '10px' }}>
<Paper
sx={{ borderRadius: (theme) => theme.sizes.borderRadius }}>
<MenuList
sx={{
padding: 0,
border: 'none',
borderRadius: '8px',
borderRadius: (theme) => theme.sizes.borderRadius,
}}>
<MenuItem>
<ListItem onClick={showRenameCollectionModal}>

View file

@ -60,7 +60,7 @@ function RecoveryKeyModal({ somethingWentWrong, ...props }: Props) {
}}>
<p>{constants.RECOVERY_KEY_DESCRIPTION}</p>
<Box
borderRadius={'8px'}
borderRadius={(theme) => theme.sizes.borderRadius}
border={'1px dashed'}
borderColor={'grey.A700'}>
<CodeBlock code={recoveryKey} />

View file

@ -21,7 +21,7 @@ export default function SubscriptionDetails({ userDetails }: Iprops) {
flexDirection={'column'}
height={160}
bgcolor="accent.main"
borderRadius={'8px'}
borderRadius={(theme) => theme.sizes.borderRadius}
position={'relative'}>
{userDetails ? (
<>
@ -61,7 +61,7 @@ export default function SubscriptionDetails({ userDetails }: Iprops) {
position={'relative'}
zIndex="100"
height="64px"
borderRadius={'0 0 8px 8px'}
borderRadius={(theme) => theme.sizes.borderRadius}
bgcolor="accent.dark"
padding="16px">
<LinearProgress