Skip to content

Commit

Permalink
chore: type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Mogilski committed Nov 9, 2023
1 parent 9079b57 commit cdec58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import { DynamicSearchDialog } from "../Search/DynamicSearchDialog"
import { Button } from "../ui/Button/Button"
import { Sheet, SheetContent, SheetTrigger } from "../ui/Sheet/Sheet"

type GetNavigationTranslationReturn = Awaited<ReturnType<typeof getNavigationTranslation>>
export type Translations = Awaited<ReturnType<typeof getNavigationTranslation>>

export type GetNavigationReturn = Awaited<ReturnType<typeof getNavigation>>

type NavigationProps = {
navigation: Pick<GetNavigationReturn, "navigation">["navigation"]
translations: GetNavigationTranslationReturn
translations: Translations
}

export function Navigation({ navigation, translations }: NavigationProps) {
Expand Down

0 comments on commit cdec58c

Please sign in to comment.