Adjust BottomSheetModal minHeight and add margin to toggle button; add 'Upgrade to Plus' option in NavBar

This commit is contained in:
Mo Tarbin
2025-08-23 17:17:02 -04:00
parent 0f125cd63f
commit 77b3430339
2 changed files with 15 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ const BottomSheetModal = forwardRef(
ref={ref} ref={ref}
sx={{ sx={{
zIndex: Z_INDEX.MODAL_CONTENT, zIndex: Z_INDEX.MODAL_CONTENT,
minHeight: '30%', minHeight: '20%',
width: '100%', width: '100%',
height: currentHeight, height: currentHeight,
maxHeight: isExpanded ? expandedHeight : maxHeight, maxHeight: isExpanded ? expandedHeight : maxHeight,
@@ -167,6 +167,7 @@ const BottomSheetModal = forwardRef(
padding: '12px 0 8px 0', padding: '12px 0 8px 0',
cursor: 'pointer', cursor: 'pointer',
userSelect: 'none', userSelect: 'none',
marginBottom: 16,
}} }}
onClick={handleToggleExpansion} onClick={handleToggleExpansion}
title={isExpanded ? 'Collapse' : 'Expand'} title={isExpanded ? 'Collapse' : 'Expand'}

View File

@@ -8,6 +8,7 @@ import {
Logout, Logout,
MenuRounded, MenuRounded,
SettingsOutlined, SettingsOutlined,
SwitchAccessShortcutAdd,
Toll, Toll,
Widgets, Widgets,
} from '@mui/icons-material' } from '@mui/icons-material'
@@ -214,6 +215,18 @@ const NavBar = () => {
size='md' size='md'
onClick={openDrawer} onClick={openDrawer}
> >
{/* Add List item to invite the user to upgrade to Plus: */}
<ListItemButton
onClick={() => navigate('/settings#subscription')}
sx={{
py: 1.2,
}}
>
<ListItemDecorator>
<SwitchAccessShortcutAdd />
</ListItemDecorator>
<ListItemContent>Upgrade to Plus</ListItemContent>
</ListItemButton>
<ListItemButton <ListItemButton
onClick={() => { onClick={() => {
localStorage.removeItem('ca_token') localStorage.removeItem('ca_token')