💄(oidc) add login page in the frontend

To have a better user experience, we want the login page
to in the frontend.
This commit is contained in:
Quentin BEY
2025-02-10 11:43:30 +01:00
committed by BEY Quentin
parent 68550f6f7e
commit fd8e0e08c3
13 changed files with 516 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
import { Input } from '@openfun/cunningham-react';
interface InputUserEmailProps {
label: string;
email: string;
setEmail: (newEmail: string) => void;
}
export const InputUserEmail = ({
label,
email,
setEmail,
}: InputUserEmailProps) => {
return (
<Input
label={label}
type="email"
onChange={(e) => setEmail(e.target.value)}
required
fullWidth
autoComplete="username"
value={email}
/>
);
};