Add default credentials

This commit is contained in:
dominik-zeglen 2019-10-24 16:05:53 +02:00 committed by Krzysztof Wolski
parent 0b9c283bb7
commit 47bd37e6ad

View file

@ -54,7 +54,13 @@ const LoginCard: React.FC<LoginCardProps> = props => {
const intl = useIntl(); const intl = useIntl();
return ( return (
<Form initial={{ email: "", password: "" }} onSubmit={onSubmit}> <Form
initial={{
email: "admin@example.com",
password: "admin"
}}
onSubmit={onSubmit}
>
{({ change: handleChange, data, submit: handleSubmit }) => ( {({ change: handleChange, data, submit: handleSubmit }) => (
<> <>
{error && ( {error && (