mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-04-01 23:02:25 -04:00
Fix register issues on mobile
This commit is contained in:
parent
0f31286058
commit
ca5b3dc21d
@ -28,7 +28,7 @@ export const Input = ({
|
||||
ref={ref}
|
||||
textAlignVertical="center"
|
||||
className={cn(
|
||||
"h-6 flex-1 font-sans text-base text-slate-600 outline-0 dark:text-slate-400",
|
||||
"min-h-6 flex-1 font-sans text-base text-slate-600 outline-0 dark:text-slate-400",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
||||
@ -22,7 +22,10 @@ export const RegisterPage = () => {
|
||||
|
||||
const router = useRouter();
|
||||
const { t } = useTranslation();
|
||||
const { data: info } = useFetch(OidcLogin.query(apiUrl));
|
||||
const { data: info } = useFetch({
|
||||
...OidcLogin.query(apiUrl),
|
||||
options: { returnError: true },
|
||||
});
|
||||
|
||||
if (Platform.OS !== "web" && !apiUrl) return <ServerUrlPage />;
|
||||
if (info?.allowRegister === false) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user