mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix web issues
This commit is contained in:
parent
b0ea38b047
commit
dad0a7d30a
@ -8,10 +8,12 @@
|
||||
"distribution": "internal",
|
||||
"env": {
|
||||
"APP_VARIANT": "development"
|
||||
}
|
||||
},
|
||||
"channel": "development"
|
||||
},
|
||||
"preview": {
|
||||
"distribution": "internal"
|
||||
"distribution": "internal",
|
||||
"channel": "preview"
|
||||
},
|
||||
"production": {
|
||||
"channel": "prod",
|
||||
|
@ -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> => ({
|
||||
|
@ -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"
|
||||
? () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user