Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit db6fabc

Browse files
committedJul 7, 2020
add info for demo login
1 parent 483d944 commit db6fabc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎client/src/components/Form.js

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ function Form(props) {
2727
{error}
2828
</div>
2929
))}
30+
{!!props.info &&
31+
<div className="alert alert-info" role="alert">
32+
{props.info}
33+
</div>
34+
}
3035
<div className="jumbotron jumbotron-light jumbotron-form">
3136

3237
{props.fields.map(field => {

‎client/src/components/Login.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function Login({token, login, loginAction}) {
2424
<Form
2525
disabled={login.processing}
2626
title="Вход"
27+
info="Demo: user1@mail.com / 123123"
2728
errors={login.error ? [login.error] : null}
2829
onSubmit={onSubmit}
2930
fields={fields}

0 commit comments

Comments
 (0)
Please sign in to comment.