diff --git a/front/packages/ui/src/login/register.tsx b/front/packages/ui/src/login/register.tsx index 6882cefb..55394a8e 100644 --- a/front/packages/ui/src/login/register.tsx +++ b/front/packages/ui/src/login/register.tsx @@ -29,7 +29,6 @@ import { percent, px, useYoshiki } from "yoshiki/native"; import { DefaultLayout } from "../layout"; import { FormPage } from "./form"; import { PasswordInput } from "./password-input"; -import { useQueryClient } from "@tanstack/react-query"; import { cleanApiUrl } from "./login"; export const RegisterPage: QueryPage = () => { @@ -41,7 +40,6 @@ export const RegisterPage: QueryPage = () => { const [error, setError] = useState(undefined); const router = useRouter(); - const queryClient = useQueryClient(); const { t } = useTranslation(); const { css } = useYoshiki(); diff --git a/front/packages/ui/src/settings/index.tsx b/front/packages/ui/src/settings/index.tsx index b18e3a1d..b82a4072 100644 --- a/front/packages/ui/src/settings/index.tsx +++ b/front/packages/ui/src/settings/index.tsx @@ -20,6 +20,7 @@ import { Account, + KyooErrors, QueryIdentifier, QueryPage, User, @@ -45,17 +46,17 @@ import { ts, } from "@kyoo/primitives"; import { DefaultLayout } from "../layout"; -import { Children, ReactElement, ReactNode, useState, useTransition } from "react"; +import { Children, ComponentProps, ReactElement, ReactNode, useState } from "react"; import { useTranslation } from "react-i18next"; import { ScrollView, View } from "react-native"; -import { Portal } from "@gorhom/portal"; -import { percent, px, rem, useYoshiki } from "yoshiki/native"; +import { px, rem, useYoshiki } from "yoshiki/native"; import Theme from "@material-symbols/svg-400/outlined/dark_mode.svg"; import Username from "@material-symbols/svg-400/outlined/badge.svg"; import Mail from "@material-symbols/svg-400/outlined/mail.svg"; import Password from "@material-symbols/svg-400/outlined/password.svg"; import { useMutation, useQueryClient } from "@tanstack/react-query"; +import { PasswordInput } from "../login/password-input"; const Preference = ({ icon, @@ -132,12 +133,14 @@ const ChangePopup = ({ label, icon, inital, + autoComplete, apply, close, }: { label: string; icon: Icon; inital: string; + autoComplete: ComponentProps["autoComplete"]; apply: (v: string) => Promise; close: () => void; }) => { @@ -152,7 +155,12 @@ const ChangePopup = ({

{label}

- setValue(v)} /> + setValue(v)} + />