-
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.
imports geoptimaliseerd en dubbele declaraties verwijderd. paginas mo…
…ete nu werkende zijn.
- Loading branch information
1 parent
ca52e98
commit ff3cbef
Showing
6 changed files
with
269 additions
and
254 deletions.
There are no files selected for viewing
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,40 +1,52 @@ | ||
import { Paper, TableContainer, Table, TableHead, TableRow, TableCell, TableBody,useTheme, ThemeProvider } from '@mui/material'; | ||
import {Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow} from '@mui/material'; | ||
import theme from '../Theme'; | ||
|
||
interface Item { | ||
opdracht: string; | ||
deadline: string; | ||
status: string; | ||
score: string; | ||
opdracht: string; | ||
deadline: string; | ||
status: string; | ||
score: string; | ||
} | ||
|
||
interface ItemListProps { | ||
itemList: Item[]; | ||
itemList: Item[]; | ||
} | ||
|
||
export const ItemList: React.FC<ItemListProps> = ({ itemList }) => { | ||
return ( | ||
<TableContainer component={Paper} variant="outlined"> | ||
<Table> | ||
<TableHead> | ||
<TableRow> | ||
<TableCell style={{ backgroundColor: theme.palette.secondary.main, color: theme.palette.secondary.contrastText }}>Opdracht</TableCell> | ||
<TableCell style={{ backgroundColor: theme.palette.secondary.main, color: theme.palette.secondary.contrastText }}>Deadline</TableCell> | ||
<TableCell style={{ backgroundColor: theme.palette.secondary.main, color: theme.palette.secondary.contrastText }}>Status</TableCell> | ||
<TableCell style={{ backgroundColor: theme.palette.secondary.main, color: theme.palette.secondary.contrastText }}>Score</TableCell> | ||
</TableRow> | ||
</TableHead> | ||
<TableBody> | ||
{itemList.map((item, index) => ( | ||
<TableRow key={index}> | ||
<TableCell>{item.opdracht}</TableCell> | ||
<TableCell>{item.deadline}</TableCell> | ||
<TableCell>{item.status}</TableCell> | ||
<TableCell>{item.score}</TableCell> | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</Table> | ||
</TableContainer> | ||
); | ||
export const ItemList: React.FC<ItemListProps> = ({itemList}) => { | ||
return ( | ||
<TableContainer component={Paper} variant="outlined"> | ||
<Table> | ||
<TableHead> | ||
<TableRow> | ||
<TableCell style={{ | ||
backgroundColor: theme.palette.secondary.main, | ||
color: theme.palette.secondary.contrastText | ||
}}>Opdracht</TableCell> | ||
<TableCell style={{ | ||
backgroundColor: theme.palette.secondary.main, | ||
color: theme.palette.secondary.contrastText | ||
}}>Deadline</TableCell> | ||
<TableCell style={{ | ||
backgroundColor: theme.palette.secondary.main, | ||
color: theme.palette.secondary.contrastText | ||
}}>Status</TableCell> | ||
<TableCell style={{ | ||
backgroundColor: theme.palette.secondary.main, | ||
color: theme.palette.secondary.contrastText | ||
}}>Score</TableCell> | ||
</TableRow> | ||
</TableHead> | ||
<TableBody> | ||
{itemList.map((item, index) => ( | ||
<TableRow key={index}> | ||
<TableCell>{item.opdracht}</TableCell> | ||
<TableCell>{item.deadline}</TableCell> | ||
<TableCell>{item.status}</TableCell> | ||
<TableCell>{item.score}</TableCell> | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</Table> | ||
</TableContainer> | ||
); | ||
}; |
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
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
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
Oops, something went wrong.