File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4,21 +4,23 @@ import { call_rpc } from "@zmkfirmware/zmk-studio-ts-client";
44import { useConnectedDeviceData } from "./rpc/useConnectedDeviceData" ;
55import { useSub } from "./usePubSub" ;
66import { ConnectionContext } from "./rpc/ConnectionContext" ;
7+ import { GetDeviceInfoResponse } from "@zmkfirmware/zmk-studio-ts-client/core" ;
78
89export interface AppHeaderProps {
910 connectedDeviceLabel ?: string ;
1011}
1112
12- export const AppHeader = ( { connectedDeviceLabel } : AppHeaderProps ) => {
13+ export const AppHeader = ( { } : AppHeaderProps ) => {
1314 const [ unsaved , setUnsaved ] = useConnectedDeviceData < boolean > (
1415 { keymap : { checkUnsavedChanges : true } } ,
1516 ( r ) => r . keymap ?. checkUnsavedChanges
1617 ) ;
1718
18- const [ deviceInfo , _setDeviceInfo ] = useConnectedDeviceData < boolean > (
19- { core : { getDeviceInfo : true } } ,
20- ( r ) => r . core ?. getDeviceInfo
21- ) ;
19+ const [ deviceInfo , _setDeviceInfo ] =
20+ useConnectedDeviceData < GetDeviceInfoResponse > (
21+ { core : { getDeviceInfo : true } } ,
22+ ( r ) => r . core ?. getDeviceInfo
23+ ) ;
2224 const conn = useContext ( ConnectionContext ) ;
2325
2426 useSub ( "rpc_notification.keymap.unsavedChangesStatusChanged" , ( unsaved ) =>
You can’t perform that action at this time.
0 commit comments