This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
people/src/frontend/apps/desk/src/features/login/components/InputUserEmail.tsx
Quentin BEY fd8e0e08c3 💄(oidc) add login page in the frontend
To have a better user experience, we want the login page
to in the frontend.
2025-03-03 12:24:43 +01:00

26 lines
459 B
TypeScript

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}
/>
);
};