Skip to content

Commit

Permalink
types: Fix keyboardShortcut param (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbud authored Nov 13, 2023
1 parent 11c3a05 commit 15ef3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/histoire-app/src/app/util/tooltip.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isMac } from './env.js'
import { formatKey } from './keyboard.js'

export function makeTooltip (descriptionHtml: string, keyboardShortcut: ({ isMac: boolean }) => string) {
export function makeTooltip (descriptionHtml: string, keyboardShortcut: (options: { isMac: boolean }) => string) {
return {
content: `<div>${descriptionHtml}</div><div class="htw-flex htw-items-center htw-gap-1 htw-mt-2 htw-text-sm">${genKeyboardShortcutHtml(keyboardShortcut({ isMac }))}</div>`,
html: true,
Expand Down

0 comments on commit 15ef3ea

Please sign in to comment.