-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
87 additions
and
87 deletions.
There are no files selected for viewing
58 changes: 28 additions & 30 deletions
58
Week-16-React_Router_and_React_Bootstrap/src/pages/ChildA/ChildA.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,42 @@ | ||
//Imports | ||
import Table from 'react-bootstrap/Table'; | ||
import Table from "react-bootstrap/Table"; | ||
import Container from "react-bootstrap/Container"; | ||
import Row from "react-bootstrap/Row"; | ||
import filterByName from '../../components/filterByName'; | ||
import UserTableRow from '../../components/UserTableRow'; | ||
import { Col } from 'react-bootstrap'; | ||
import filterByName from "../../components/filterByName"; | ||
import UserTableRow from "../../components/UserTableRow"; | ||
import { Col } from "react-bootstrap"; | ||
|
||
//Ayla's Page | ||
export default function ChildA({chores}) { | ||
|
||
export default function ChildA({ chores }) { | ||
//Html Output | ||
return ( | ||
<Container> | ||
<Row> | ||
<Col className="p-3 m-4" id="form-area"><h1 id="text-header">Ayla's Tasks:</h1></Col> | ||
<Col className="p-3 m-4" id="form-area"> | ||
<h1 id="text-header">Ayla's Tasks:</h1> | ||
</Col> | ||
<Col></Col> | ||
<Col></Col> | ||
</Row> | ||
<Row className='m-3 p-3'> | ||
<div className='round-corners'> | ||
<Table id="table" striped bordered hover variant="dark"> | ||
<thead> | ||
<tr> | ||
<th>Ayla's Tasks</th> | ||
<th>Date Assigned:</th> | ||
<th>Task:</th> | ||
<th>Completed?:</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{filterByName("Ayla", chores).map((chore, index) => ( | ||
<UserTableRow | ||
key={index} | ||
chore={chore} | ||
/> | ||
))} | ||
</tbody> | ||
</Table> | ||
</div> | ||
</Row> | ||
<Row className="m-3 p-3"> | ||
<div className="round-corners"> | ||
<Table id="table" striped bordered hover variant="dark"> | ||
<thead> | ||
<tr> | ||
<th>Ayla's Tasks</th> | ||
<th>Date Assigned:</th> | ||
<th>Task:</th> | ||
<th>Completed?:</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{filterByName("Ayla", chores).map((chore, index) => ( | ||
<UserTableRow key={index} chore={chore} /> | ||
))} | ||
</tbody> | ||
</Table> | ||
</div> | ||
</Row> | ||
</Container> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 28 additions & 28 deletions
56
Week-16-React_Router_and_React_Bootstrap/src/pages/ChildC/ChildC.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
//Imports | ||
import Table from 'react-bootstrap/Table'; | ||
import Table from "react-bootstrap/Table"; | ||
import Container from "react-bootstrap/Container"; | ||
import Row from "react-bootstrap/Row"; | ||
import { Col } from 'react-bootstrap'; | ||
import filterByName from '../../components/filterByName'; | ||
import UserTableRow from '../../components/UserTableRow'; | ||
import { Col } from "react-bootstrap"; | ||
import filterByName from "../../components/filterByName"; | ||
import UserTableRow from "../../components/UserTableRow"; | ||
|
||
//Callan's Page | ||
export default function ChildC({chores}) { | ||
|
||
export default function ChildC({ chores }) { | ||
//Html Output | ||
return ( | ||
<Container> | ||
<Row> | ||
<Col className="p-3 m-4" id="form-area"><h1 id="text-header">Callan's Tasks:</h1></Col> | ||
<Col className="p-3 m-4" id="form-area"> | ||
<h1 id="text-header">Callan's Tasks:</h1> | ||
</Col> | ||
<Col></Col> | ||
<Col></Col> | ||
</Row> | ||
<Row className='m-3 p-3'> | ||
<Table striped bordered hover variant="dark"> | ||
<thead> | ||
<tr> | ||
<th>Callan's Tasks</th> | ||
<th>Date Assigned:</th> | ||
<th>Task:</th> | ||
<th>Completed?:</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{filterByName("Callan", chores).map((chore, index) => ( | ||
<UserTableRow | ||
key={index} | ||
chore={chore} | ||
/> | ||
))} | ||
</tbody> | ||
</Table> | ||
</Row> | ||
<Row className="m-3 p-3"> | ||
<div className="round-corners"> | ||
<Table id="table" striped bordered hover variant="dark"> | ||
<thead> | ||
<tr> | ||
<th>Callan's Tasks</th> | ||
<th>Date Assigned:</th> | ||
<th>Task:</th> | ||
<th>Completed?:</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{filterByName("Callan", chores).map((chore, index) => ( | ||
<UserTableRow key={index} chore={chore} /> | ||
))} | ||
</tbody> | ||
</Table> | ||
</div> | ||
</Row> | ||
</Container> | ||
); | ||
} | ||
} |
56 changes: 28 additions & 28 deletions
56
Week-16-React_Router_and_React_Bootstrap/src/pages/ChildD/ChildD.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
//Imports | ||
import Table from 'react-bootstrap/Table'; | ||
import Table from "react-bootstrap/Table"; | ||
import Container from "react-bootstrap/Container"; | ||
import Row from "react-bootstrap/Row"; | ||
import { Col } from 'react-bootstrap'; | ||
import filterByName from '../../components/filterByName'; | ||
import UserTableRow from '../../components/UserTableRow'; | ||
import { Col } from "react-bootstrap"; | ||
import filterByName from "../../components/filterByName"; | ||
import UserTableRow from "../../components/UserTableRow"; | ||
|
||
//Delaney's Page | ||
export default function ChildD({chores}) { | ||
|
||
export default function ChildD({ chores }) { | ||
//Html Output | ||
return ( | ||
<Container> | ||
<Row> | ||
<Col className="p-3 m-4" id="form-area"><h1 id="text-header">Delaney's Tasks:</h1></Col> | ||
<Col className="p-3 m-4" id="form-area"> | ||
<h1 id="text-header">Delaney's Tasks:</h1> | ||
</Col> | ||
<Col></Col> | ||
<Col></Col> | ||
</Row> | ||
<Row className='m-3 p-3'> | ||
<Table striped bordered hover variant="dark"> | ||
<thead> | ||
<tr> | ||
<th>Delaney's Tasks</th> | ||
<th>Date Assigned:</th> | ||
<th>Task:</th> | ||
<th>Completed?:</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{filterByName("Delaney", chores).map((chore, index) => ( | ||
<UserTableRow | ||
key={index} | ||
chore={chore} | ||
/> | ||
))} | ||
</tbody> | ||
</Table> | ||
</Row> | ||
<Row className="m-3 p-3"> | ||
<div className="round-corners"> | ||
<Table id="table" striped bordered hover variant="dark"> | ||
<thead> | ||
<tr> | ||
<th>Delaney's Tasks</th> | ||
<th>Date Assigned:</th> | ||
<th>Task:</th> | ||
<th>Completed?:</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{filterByName("Delaney", chores).map((chore, index) => ( | ||
<UserTableRow key={index} chore={chore} /> | ||
))} | ||
</tbody> | ||
</Table> | ||
</div> | ||
</Row> | ||
</Container> | ||
); | ||
} | ||
} |