💄(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:
@@ -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}
|
||||
/>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user