mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Remove autocomplete and autocapitalisation on server url and username fields (#731)
This commit is contained in:
parent
8dcd4df750
commit
cf728739b3
@ -11,7 +11,7 @@
|
|||||||
"build:mobile:dev": "yarn workspace mobile build:dev",
|
"build:mobile:dev": "yarn workspace mobile build:dev",
|
||||||
"update": "yarn workspace mobile update",
|
"update": "yarn workspace mobile update",
|
||||||
"lint": "biome lint .",
|
"lint": "biome lint .",
|
||||||
"lint:fix": "biome lint . --apply",
|
"lint:fix": "biome lint . --write",
|
||||||
"format": "biome format .",
|
"format": "biome format .",
|
||||||
"format:fix": "biome format . --write"
|
"format:fix": "biome format . --write"
|
||||||
},
|
},
|
||||||
|
@ -55,7 +55,12 @@ export const LoginPage: QueryPage<{ apiUrl?: string; error?: string }> = ({
|
|||||||
<H1>{t("login.login")}</H1>
|
<H1>{t("login.login")}</H1>
|
||||||
<OidcLogin apiUrl={apiUrl} />
|
<OidcLogin apiUrl={apiUrl} />
|
||||||
<P {...css({ paddingLeft: ts(1) })}>{t("login.username")}</P>
|
<P {...css({ paddingLeft: ts(1) })}>{t("login.username")}</P>
|
||||||
<Input autoComplete="username" variant="big" onChangeText={(value) => setUsername(value)} />
|
<Input
|
||||||
|
autoComplete="username"
|
||||||
|
variant="big"
|
||||||
|
onChangeText={(value) => setUsername(value)}
|
||||||
|
autoCapitalize="none"
|
||||||
|
/>
|
||||||
<P {...css({ paddingLeft: ts(1) })}>{t("login.password")}</P>
|
<P {...css({ paddingLeft: ts(1) })}>{t("login.password")}</P>
|
||||||
<PasswordInput
|
<PasswordInput
|
||||||
autoComplete="password"
|
autoComplete="password"
|
||||||
|
@ -63,7 +63,7 @@ export const ServerUrlPage: QueryPage = () => {
|
|||||||
>
|
>
|
||||||
<H1>{t("login.server")}</H1>
|
<H1>{t("login.server")}</H1>
|
||||||
<View {...css({ justifyContent: "center" })}>
|
<View {...css({ justifyContent: "center" })}>
|
||||||
<Input variant="big" onChangeText={setApiUrl} />
|
<Input variant="big" onChangeText={setApiUrl} autoCorrect={false} autoCapitalize="none" />
|
||||||
{!data && (
|
{!data && (
|
||||||
<P {...css({ color: (theme: Theme) => theme.colors.red, alignSelf: "center" })}>
|
<P {...css({ color: (theme: Theme) => theme.colors.red, alignSelf: "center" })}>
|
||||||
{error?.errors[0] ?? t("misc.loading")}
|
{error?.errors[0] ?? t("misc.loading")}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user