Skip to content

Commit

Permalink
Add missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
GedeonTS committed May 4, 2024
1 parent 5a05236 commit 8ed6eec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/lib/components/keyboard-shortcuts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } f
import { useCallback } from 'react';
import { Button } from './button';
import { Tooltip } from './tooltip';
import { useTranslations } from 'next-intl';
import { DottedLanguageObjectStringPaths, useTranslations } from 'next-intl';
import { LineDotBoxIcon } from 'assets/svg';

export function KeyboardShortcuts() {
Expand Down Expand Up @@ -40,7 +40,7 @@ export function KeyboardShortcuts() {
{HostKeysMapping.map((item, index) => (
<div key={index} className="flex flex-col gap-2">
<p className="text-base font-normal text-black dark:text-light--theme-light">
{t(`hotkeys.${item.heading}`)}
{t(`hotkeys.${item.heading}` as DottedLanguageObjectStringPaths)}
</p>

{item.keySequence.map((keySeq, keySeqIndex) => (
Expand All @@ -49,7 +49,7 @@ export function KeyboardShortcuts() {
key={`key-seq-${keySeqIndex}`}
>
<div>
<p className="text-sm font-normal">{t(`hotkeys.${keySeq.label}`)}</p>
<p className="text-sm font-normal">{t(`hotkeys.${keySeq.label}` as DottedLanguageObjectStringPaths)}</p>
</div>
<div className="flex flex-row gap-2">
{[...(os === 'Mac' ? keySeq.sequence.MAC : keySeq.sequence.OTHER)].map(
Expand Down

0 comments on commit 8ed6eec

Please sign in to comment.