Fix types

This commit is contained in:
Zoe Roux 2024-05-23 14:56:24 +02:00
parent 12742162ff
commit 75a05296f7
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ const SortTrigger = forwardRef<View, PressableProps & { sortKey: string }>(funct
{...tooltip(t("browse.sortby-tt"))} {...tooltip(t("browse.sortby-tt"))}
> >
<Icon icon={Sort} {...css({ paddingX: ts(0.5) })} /> <Icon icon={Sort} {...css({ paddingX: ts(0.5) })} />
<P>{t(`browse.sortkey.${sortKey}`)}</P> <P>{t(`browse.sortkey.${sortKey}` as any)}</P>
</PressableFeedback> </PressableFeedback>
); );
}); });
@ -102,7 +102,7 @@ export const BrowseSettings = ({
{availableSorts.map((x) => ( {availableSorts.map((x) => (
<Menu.Item <Menu.Item
key={x} key={x}
label={t(`browse.sortkey.${x}`)} label={t(`browse.sortkey.${x}` as any)}
selected={sortKey === x} selected={sortKey === x}
icon={ icon={
x !== SearchSort.Relevance x !== SearchSort.Relevance

View File

@ -104,7 +104,7 @@ export const WatchListInfo = ({
{Object.values(WatchStatusV).map((x) => ( {Object.values(WatchStatusV).map((x) => (
<Menu.Item <Menu.Item
key={x} key={x}
label={t(`show.watchlistMark.${x.toLowerCase()}`)} label={t(`show.watchlistMark.${x.toLowerCase() as Lowercase<WatchStatusV>}`)}
onSelect={() => mutation.mutate(x)} onSelect={() => mutation.mutate(x)}
selected={x === status} selected={x === status}
/> />

View File

@ -64,7 +64,7 @@ export const ConnectionError = () => {
return ( return (
<View {...css({ padding: ts(2) })}> <View {...css({ padding: ts(2) })}>
<H1 {...css({ textAlign: "center" })}>{t("errors.connection")}</H1> <H1 {...css({ textAlign: "center" })}>{t("errors.connection")}</H1>
<P>{error?.errors[0] ?? t("error.unknown")}</P> <P>{error?.errors[0] ?? t("errors.unknown")}</P>
<P>{t("errors.connection-tips")}</P> <P>{t("errors.connection-tips")}</P>
<Button onPress={retry} text={t("errors.try-again")} {...css({ m: ts(1) })} /> <Button onPress={retry} text={t("errors.try-again")} {...css({ m: ts(1) })} />
<Button <Button