Skip to content

Commit

Permalink
Small Table Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraju-pc committed Aug 1, 2023
1 parent 7c30701 commit 67d1b32
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 87 deletions.
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>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export default function ChildB({chores}) {
<Col></Col>
</Row>
<Row className='m-3 p-3'>
<Table striped bordered hover variant="dark">
<div className="round-corners">
<Table id="table" striped bordered hover variant="dark">
<thead>
<tr>
<th>Braiden's Tasks</th>
Expand All @@ -36,6 +37,7 @@ export default function ChildB({chores}) {
))}
</tbody>
</Table>
</div>
</Row>
</Container>
);
Expand Down
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>
);
}
}
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>
);
}
}

0 comments on commit 67d1b32

Please sign in to comment.