Skip to content

Commit

Permalink
onClick->onPress
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Oct 18, 2024
1 parent a0756b0 commit 1894d73
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/docs/src/components/ThemeChanger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,24 +197,24 @@ export const ThemeChanger = () => {
title="dark"
data-value="dark"
className="rounded-l-full"
selected={selectedColorMode == 'dark'}
onClick={() => handleChangeColorMode('dark')}
icon={<Icon>dark_mode</Icon>}
selected={selectedColorMode == 'dark'}
onPress={() => handleChangeColorMode('dark')}
/>
<SegmentedButton
title="auto"
data-value="auto"
selected={selectedColorMode == 'system'}
onClick={() => handleChangeColorMode('system')}
icon={<Icon>brightness_medium</Icon>}
selected={selectedColorMode == 'system'}
onPress={() => handleChangeColorMode('system')}
/>
<SegmentedButton
title="light"
data-value="light"
className="rounded-r-full"
selected={selectedColorMode == 'light'}
onClick={() => handleChangeColorMode('light')}
icon={<Icon>light_mode</Icon>}
selected={selectedColorMode == 'light'}
onPress={() => handleChangeColorMode('light')}
/>
</div>
</SegmentedButtonSet>
Expand Down

0 comments on commit 1894d73

Please sign in to comment.