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", "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",

View File

@ -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> => ({

View File

@ -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"
? () => { ? () => {