Commit 46e2c90d authored by Jiawen Lyu's avatar Jiawen Lyu

show logins in list

parent ce71ffc4
...@@ -74,7 +74,6 @@ class App extends Component { ...@@ -74,7 +74,6 @@ class App extends Component {
<label for="exampleInputEmail1">Current students:</label> <label for="exampleInputEmail1">Current students:</label>
</div> </div>
<div class="row"> <div class="row">
{logins}
<StudentsList logins={logins} /> <StudentsList logins={logins} />
</div> </div>
</div> </div>
......
...@@ -6,16 +6,13 @@ export const StudentsList = (props) => { ...@@ -6,16 +6,13 @@ export const StudentsList = (props) => {
return ( return (
<> <>
<ul class="list-group" id="studentList"> <ul class="list-group" id="studentList">
<li class="list-group-item"> {
{ logins.map(login => (<li class="list-group-item">
console.log(logins) {
login
} }
</li> </li>))
<li class="list-group-item">Dapibus ac facilisis in</li> }
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul> </ul>
</> </>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment