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",
|
"distribution": "internal",
|
||||||
"env": {
|
"env": {
|
||||||
"APP_VARIANT": "development"
|
"APP_VARIANT": "development"
|
||||||
}
|
},
|
||||||
|
"channel": "development"
|
||||||
},
|
},
|
||||||
"preview": {
|
"preview": {
|
||||||
"distribution": "internal"
|
"distribution": "internal",
|
||||||
|
"channel": "preview"
|
||||||
},
|
},
|
||||||
"production": {
|
"production": {
|
||||||
"channel": "prod",
|
"channel": "prod",
|
||||||
|
@ -36,26 +36,26 @@ export const EpisodeList = ({
|
|||||||
season: string | number;
|
season: string | number;
|
||||||
Header: ComponentType<{ children: JSX.Element }>;
|
Header: ComponentType<{ children: JSX.Element }>;
|
||||||
}) => {
|
}) => {
|
||||||
return null;
|
const { t } = useTranslation();
|
||||||
// const { t } = useTranslation();
|
|
||||||
|
|
||||||
// return (
|
return (
|
||||||
// <InfiniteFetch
|
<InfiniteFetch
|
||||||
// query={EpisodeList.query(slug, season)}
|
query={EpisodeList.query(slug, season)}
|
||||||
// placeholderCount={15}
|
placeholderCount={15}
|
||||||
// layout={EpisodeLine.layout}
|
layout={EpisodeLine.layout}
|
||||||
// empty={t("show.episode-none")}
|
empty={t("show.episode-none")}
|
||||||
// divider
|
divider
|
||||||
// Header={Header}
|
Header={Header}
|
||||||
// >
|
>
|
||||||
// {(item) => (
|
{(item) => (
|
||||||
// <EpisodeLine
|
<EpisodeLine
|
||||||
// {...item}
|
{...item}
|
||||||
// displayNumber={item.isLoading ? undefined : episodeDisplayNumber(item)}
|
isLoading={item.isLoading}
|
||||||
// />
|
displayNumber={item.isLoading ? undefined : episodeDisplayNumber(item)}
|
||||||
// )}
|
/>
|
||||||
// </InfiniteFetch>
|
)}
|
||||||
// );
|
</InfiniteFetch>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
EpisodeList.query = (slug: string, season: string | number): QueryIdentifier<Episode> => ({
|
EpisodeList.query = (slug: string, season: string | number): QueryIdentifier<Episode> => ({
|
||||||
|
@ -97,7 +97,7 @@ export const NavbarProfile = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
export const NavbarRight = () => {
|
export const NavbarRight = () => {
|
||||||
const { css } = useYoshiki();
|
const { css, theme } = useYoshiki();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [isSearching, setSearch] = useState(false);
|
const [isSearching, setSearch] = useState(false);
|
||||||
const ref = useRef<TextInput | null>(null);
|
const ref = useRef<TextInput | null>(null);
|
||||||
@ -121,6 +121,7 @@ export const NavbarRight = () => {
|
|||||||
{!searchExpanded && (
|
{!searchExpanded && (
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={Search}
|
icon={Search}
|
||||||
|
color={theme.colors.white}
|
||||||
onPress={
|
onPress={
|
||||||
Platform.OS === "web"
|
Platform.OS === "web"
|
||||||
? () => {
|
? () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user