File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/features/settings/components/GeneralSettings Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import { useState } from 'react'
2+ import { useNavigate } from 'react-router-dom'
23import Select , { SingleValue } from 'react-select'
34import { trackDNDEnable } from 'src/lib/analytics'
45import { useUserPreferences } from 'src/stores/preferences'
@@ -18,7 +19,7 @@ const DNDDurations: DndOption[] = [
1819
1920export const DNDSettings = ( ) => {
2021 const [ selectedDNDDuration , setSelectedDNDDuration ] = useState < DndOption [ 'value' ] > ( )
21-
22+ const navigate = useNavigate ( )
2223 const { DNDDuration, setDNDDuration } = useUserPreferences ( )
2324
2425 const onApplyClicked = ( ) => {
@@ -39,7 +40,7 @@ export const DNDSettings = () => {
3940 }
4041
4142 trackDNDEnable ( selectedDNDDuration )
42- //setShowSettings(false )
43+ navigate ( '/' )
4344 }
4445
4546 const onPeriodSelect = ( selectedOption : SingleValue < DndOption > ) => {
You can’t perform that action at this time.
0 commit comments