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"))}
>
<Icon icon={Sort} {...css({ paddingX: ts(0.5) })} />
<P>{t(`browse.sortkey.${sortKey}`)}</P>
<P>{t(`browse.sortkey.${sortKey}` as any)}</P>
</PressableFeedback>
);
});
@ -102,7 +102,7 @@ export const BrowseSettings = ({
{availableSorts.map((x) => (
<Menu.Item
key={x}
label={t(`browse.sortkey.${x}`)}
label={t(`browse.sortkey.${x}` as any)}
selected={sortKey === x}
icon={
x !== SearchSort.Relevance

View File

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

View File

@ -64,7 +64,7 @@ export const ConnectionError = () => {
return (
<View {...css({ padding: ts(2) })}>
<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>
<Button onPress={retry} text={t("errors.try-again")} {...css({ m: ts(1) })} />
<Button