mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix types
This commit is contained in:
parent
12742162ff
commit
75a05296f7
@ -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
|
||||
|
@ -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}
|
||||
/>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user