Fix web issues

This commit is contained in:
Zoe Roux 2023-01-08 01:37:57 +09:00
parent b0ea38b047
commit dad0a7d30a
3 changed files with 25 additions and 22 deletions

View File

@ -8,10 +8,12 @@
"distribution": "internal",
"env": {
"APP_VARIANT": "development"
}
},
"channel": "development"
},
"preview": {
"distribution": "internal"
"distribution": "internal",
"channel": "preview"
},
"production": {
"channel": "prod",

View File

@ -36,26 +36,26 @@ export const EpisodeList = ({
season: string | number;
Header: ComponentType<{ children: JSX.Element }>;
}) => {
return null;
// const { t } = useTranslation();
const { t } = useTranslation();
// return (
// <InfiniteFetch
// query={EpisodeList.query(slug, season)}
// placeholderCount={15}
// layout={EpisodeLine.layout}
// empty={t("show.episode-none")}
// divider
// Header={Header}
// >
// {(item) => (
// <EpisodeLine
// {...item}
// displayNumber={item.isLoading ? undefined : episodeDisplayNumber(item)}
// />
// )}
// </InfiniteFetch>
// );
return (
<InfiniteFetch
query={EpisodeList.query(slug, season)}
placeholderCount={15}
layout={EpisodeLine.layout}
empty={t("show.episode-none")}
divider
Header={Header}
>
{(item) => (
<EpisodeLine
{...item}
isLoading={item.isLoading}
displayNumber={item.isLoading ? undefined : episodeDisplayNumber(item)}
/>
)}
</InfiniteFetch>
);
};
EpisodeList.query = (slug: string, season: string | number): QueryIdentifier<Episode> => ({

View File

@ -97,7 +97,7 @@ export const NavbarProfile = () => {
);
};
export const NavbarRight = () => {
const { css } = useYoshiki();
const { css, theme } = useYoshiki();
const { t } = useTranslation();
const [isSearching, setSearch] = useState(false);
const ref = useRef<TextInput | null>(null);
@ -121,6 +121,7 @@ export const NavbarRight = () => {
{!searchExpanded && (
<IconButton
icon={Search}
color={theme.colors.white}
onPress={
Platform.OS === "web"
? () => {