File tree 5 files changed +7
-9
lines changed
5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ function App() {
207
207
</ button >
208
208
}
209
209
< button className = "btn btn-light m-1" onClick = { ( ) => setOpenLogin ( true ) } >
210
- { logged ? `Login: $ {userName } ` : < span > < i className = "bi bi-arrow-right-circle" > </ i > LOG IN</ span > }
210
+ { logged ? < span > < i className = "bi bi-person" > </ i > { userName } </ span > : < span > < i className = "bi bi-arrow-right-circle" > </ i > LOG IN</ span > }
211
211
</ button >
212
212
</ div >
213
213
</ nav >
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ function AddCard({ onCreate, onDeleteAll }) {
49
49
</ div >
50
50
51
51
< div className = "col-lg-2 col-md-3 col-sm-4 col-6 p-1" >
52
- < button className = "btn btn-success btn-block" onClick = { submitHandler } > < i className = "bi bi-clipboard-plus" > </ i > Add card</ button >
52
+ < button disabled = { ! input . value ( ) . trim ( ) } className = "btn btn-success btn-block" onClick = { submitHandler } > < i className = "bi bi-clipboard-plus" > </ i > Add card</ button >
53
53
</ div >
54
54
55
55
< div className = "col-lg-2 col-md-3 col-sm-4 col-6 p-1" >
Original file line number Diff line number Diff line change @@ -85,14 +85,12 @@ function ModalLogin(props) {
85
85
return (
86
86
< Modal { ...modalProps . bind ( ) } >
87
87
< div className = "container p-3 bg-light" >
88
-
89
88
< div className = 'bg-light form-group mb-2' >
90
89
< div className = 'mb-1' >
91
-
92
- { userName ? < span > Login: { userName } </ span > : `` }
93
- < span className = { logged ? `badge badge-success` : `badge badge-danger` } >
90
+ < span className = { logged ? `badge badge-success` : `badge badge-secondary` } >
94
91
{ logged ? < span > < i className = "bi bi-key" > </ i > AUTORISED</ span > : 'UNAUTORISED' }
95
92
</ span >
93
+ { userName ? < span > { userName } </ span > : `` }
96
94
</ div >
97
95
</ div >
98
96
@@ -114,10 +112,10 @@ function ModalLogin(props) {
114
112
< button className = "btn btn-primary col" onClick = { tryLogin } > < i className = "bi bi-person-check" > </ i > Log in</ button >
115
113
</ div >
116
114
< div className = "col col-sm-4 col-md-4 p-1" >
117
- < button className = "btn btn-danger col" onClick = { tryLogout } > < i className = "bi bi-person-x" > </ i > Logout</ button >
115
+ < button disabled = { ! logged } className = "btn btn-danger col" onClick = { tryLogout } > < i className = "bi bi-person-x" > </ i > Logout</ button >
118
116
</ div >
119
- < div className = "col-5 col-sm-4 col-md-3 p-1" >
120
- < button className = "btn btn-secondary col" onClick = { tryClose } > < i className = "bi bi-x" > </ i > Close</ button >
117
+ < div className = "col-4 col-sm-4 col-md-3 p-1" >
118
+ < button className = "btn btn-secondary col" onClick = { tryClose } > < i className = "bi bi-x d-inline d-sm-none " > </ i > < span className = "d-none d-sm-inline" > Close</ span > </ button >
121
119
</ div >
122
120
</ div >
123
121
You can’t perform that action at this time.
0 commit comments