@@ -32,7 +32,7 @@ import { ScreenShareErrorModal } from '../components/ScreenShareErrorModal'
3232import { useConnectionObserver } from '../hooks/useConnectionObserver'
3333import { useNoiseReduction } from '../hooks/useNoiseReduction'
3434import { useRegisterKeyboardShortcut } from '@/features/shortcuts/useRegisterKeyboardShortcut'
35- import { settingsStore } from '@/stores /settings'
35+ import { useSettingsDialog } from '@/features /settings'
3636import { SettingsDialogExtendedKey } from '@/features/settings/type'
3737import { useVideoResolutionSubscription } from '../hooks/useVideoResolutionSubscription'
3838import { SettingsDialogProvider } from '@/features/settings/components/SettingsDialogProvider'
@@ -100,6 +100,7 @@ export function VideoConference({ ...props }: VideoConferenceProps) {
100100 const { t : tRooms } = useTranslation ( 'rooms' )
101101 const room = useRoomContext ( )
102102 const announce = useScreenReaderAnnounce ( )
103+ const { toggleSettingsDialog } = useSettingsDialog ( )
103104
104105 const getAnnouncementName = useCallback (
105106 ( participant ?: Participant | null ) => {
@@ -117,9 +118,8 @@ export function VideoConference({ ...props }: VideoConferenceProps) {
117118 useRegisterKeyboardShortcut ( {
118119 id : 'open-shortcuts' ,
119120 handler : useCallback ( ( ) => {
120- settingsStore . defaultSelectedTab = SettingsDialogExtendedKey . SHORTCUTS
121- settingsStore . areSettingsOpen = true
122- } , [ ] ) ,
121+ toggleSettingsDialog ( SettingsDialogExtendedKey . SHORTCUTS )
122+ } , [ toggleSettingsDialog ] ) ,
123123 } )
124124
125125 const tracks = useTracks (
0 commit comments