Skip to content

Commit 7b3dbe2

Browse files
stormcloud266youngkidwarrior
authored andcommitted
settings section
1 parent 6d3a947 commit 7b3dbe2

File tree

3 files changed

+33
-31
lines changed

3 files changed

+33
-31
lines changed

packages/app/features/account/settings/SettingsLinks.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function SettingsLinks(): JSX.Element {
55
const supabase = useSupabase()
66
const settingsLinks = [
77
{
8-
text: 'Edit Profile',
8+
text: 'My Profile',
99
href: '/account/settings/edit-profile',
1010
},
1111
{

packages/app/features/account/settings/SettingsNavLink.tsx

+6-7
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,32 @@ export function SettingsNavLink({
1717
: false // no href is never active
1818

1919
const { resolvedTheme } = useThemeSetting()
20-
const iconActiveColor = resolvedTheme?.startsWith('dark') ? '$primary' : '$green3Light'
21-
const iconInActiveColor = resolvedTheme?.startsWith('dark') ? '$gray5Light' : '$color12'
20+
const iconActiveColor = resolvedTheme?.startsWith('dark') ? '$primary' : '$color12'
2221

2322
return (
2423
<Link
2524
hoverStyle={
2625
props.disabled ? {} : { opacity: 1, backgroundColor: 'transparent', borderWidth: 0 }
2726
}
2827
cursor={props.disabled ? 'not-allowed' : 'pointer'}
29-
opacity={isActiveRoute ? 1 : 0.63}
3028
disabled={props.disabled}
3129
{...props}
3230
href={props.disabled ? '' : props.href}
3331
>
3432
<Paragraph
3533
f={1}
36-
$md={{ fontSize: '$5' }}
37-
fontWeight={isActiveRoute ? 'bold' : '300'}
38-
color={isActiveRoute ? iconActiveColor : iconInActiveColor}
34+
fontWeight={isActiveRoute ? '600' : '400'}
35+
color={isActiveRoute ? iconActiveColor : '$color10'}
3936
pl="$4"
37+
fontSize={'$5'}
4038
>
4139
{text}
4240
</Paragraph>
4341
{isActiveRoute && !sheet.open && (
4442
<Separator
4543
vertical
46-
borderColor="$greenBackground"
44+
borderColor="$primary"
45+
$theme-light={{ borderColor: '$color12' }}
4746
pos="absolute"
4847
right={-1.5}
4948
top={-2}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Separator, XStack, YStack } from '@my/ui'
1+
import { Card, Separator, XStack, YStack } from '@my/ui'
22
import { SettingsLinks } from './SettingsLinks'
33

44
export type SettingsLayoutProps = {
@@ -14,29 +14,32 @@ export type SettingsLayoutProps = {
1414

1515
export const SettingsLayout = ({ children }: SettingsLayoutProps) => {
1616
return (
17-
<XStack f={1} pt={'$4'}>
18-
<YStack
19-
// this file is web-only so we can safely use CSS
20-
style={{
21-
transition: '200ms ease width',
22-
}}
23-
width="$14"
24-
display="none"
25-
$gtLg={{ display: 'flex' }}
26-
py={'$4'}
27-
>
28-
<YStack width={'100%'} gap={'$4'}>
29-
<YStack jc={'space-between'} zIndex={4} flex={1} width={'100%'}>
30-
<YStack h={'inherit'} gap={'$6'} width={'100%'}>
31-
<SettingsLinks />
17+
<YStack pb={'$size.3.5'} f={1} pt={'$size.0.9'} $gtLg={{ pt: 0 }}>
18+
<Card width={'100%'} p={'$size.3.5'}>
19+
<XStack f={1}>
20+
<YStack
21+
// this file is web-only so we can safely use CSS
22+
style={{
23+
transition: '200ms ease width',
24+
}}
25+
width="$size.16"
26+
display="none"
27+
$gtLg={{ display: 'flex' }}
28+
>
29+
<YStack width={'100%'} gap={'$4'}>
30+
<YStack jc={'space-between'} zIndex={4} flex={1} width={'100%'}>
31+
<YStack h={'inherit'} gap={'$size.1.5'} width={'100%'}>
32+
<SettingsLinks />
33+
</YStack>
34+
</YStack>
3235
</YStack>
3336
</YStack>
34-
</YStack>
35-
</YStack>
36-
<Separator display="none" $gtLg={{ display: 'flex' }} vertical />
37-
<YStack f={1} ai="center" $gtLg={{ ml: '$8' }}>
38-
<YStack width="100%">{children}</YStack>
39-
</YStack>
40-
</XStack>
37+
<Separator display="none" $gtLg={{ display: 'flex' }} vertical />
38+
<YStack f={1} ai="center" $gtLg={{ ml: '$size.8' }}>
39+
<YStack width="100%">{children}</YStack>
40+
</YStack>
41+
</XStack>
42+
</Card>
43+
</YStack>
4144
)
4245
}

0 commit comments

Comments
 (0)