Skip to content

Commit

Permalink
fix: dont reset settings on close
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoventura committed Oct 22, 2024
1 parent e7876e3 commit f6a94a9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/Settings/SettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ export const SettingsDialog = ({ open, onOpenChange }: SettingsDialogProps) => {
}
}

const handleCancelClick = () => {
reset(settings)
}

return (
<Dialog.Root open={open} onOpenChange={onOpenChange}>
<Dialog.Content
Expand All @@ -72,9 +68,7 @@ export const SettingsDialog = ({ open, onOpenChange }: SettingsDialogProps) => {

<Flex gap="3" justify="end">
<Dialog.Close>
<Button variant="outline" onClick={handleCancelClick}>
Cancel
</Button>
<Button variant="outline">Cancel</Button>
</Dialog.Close>
<Dialog.Close>
<ButtonWithTooltip
Expand Down

0 comments on commit f6a94a9

Please sign in to comment.