Skip to content

Commit

Permalink
refactor: more consise
Browse files Browse the repository at this point in the history
Co-authored-by: MatissJanis

Co-authored-by: Matiss Janis Aboltins <[email protected]>
  • Loading branch information
Compositr and MatissJanis authored Oct 10, 2023
1 parent c792f42 commit 37ef71b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/desktop-client/src/components/Titlebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ export function SyncButton({ style, isMobile = false }: SyncButtonProps) {
<>
<KeyHandlers
keys={{
'ctrl+s': () => {
sync();
},
'ctrl+s': sync,

Check failure on line 180 in packages/desktop-client/src/components/Titlebar.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Type '() => Promise<{ error: { message: string; reason: string; meta: unknown; }; } | { error?: undefined; }>' is not assignable to type 'KeyHandler'.
}}
/>

Expand Down

0 comments on commit 37ef71b

Please sign in to comment.