mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +08:00
Fix alignment of ID label on tables and remove remarks from search criteria
This commit is contained in:
parent
18308d5055
commit
56f30fa60c
3 changed files with 13 additions and 12 deletions
|
@ -74,7 +74,9 @@ export default function EquipmentInstancesFilteredListPage() {
|
|||
<Table sx={{ minWidth: "32rem" }} size="medium">
|
||||
<TableHead>
|
||||
<TableRow style={{ backgroundColor: colors.header_color }}>
|
||||
<TableCell style={styles.text_light}>ID</TableCell>
|
||||
<TableCell align="center" style={styles.text_light}>
|
||||
ID
|
||||
</TableCell>
|
||||
<TableCell align="center" style={styles.text_light}>
|
||||
Name
|
||||
</TableCell>
|
||||
|
|
|
@ -118,7 +118,9 @@ export default function EquipmentInstancesListPage() {
|
|||
<Table sx={{ minWidth: "32rem" }} size="medium">
|
||||
<TableHead>
|
||||
<TableRow style={{ backgroundColor: colors.header_color }}>
|
||||
<TableCell style={styles.text_light}>ID</TableCell>
|
||||
<TableCell align="center" style={styles.text_light}>
|
||||
ID
|
||||
</TableCell>
|
||||
<TableCell align="center" style={styles.text_light}>
|
||||
Name
|
||||
</TableCell>
|
||||
|
@ -145,15 +147,10 @@ export default function EquipmentInstancesListPage() {
|
|||
equipment.category
|
||||
.toLowerCase()
|
||||
.includes(filter.toLowerCase()) ||
|
||||
equipment.remarks
|
||||
? equipment.remarks
|
||||
.toLowerCase()
|
||||
.includes(filter.toLowerCase())
|
||||
: false ||
|
||||
equipment.last_updated
|
||||
.toLowerCase()
|
||||
.includes(filter?.toLowerCase()) ||
|
||||
equipment.status.toLowerCase() == filter.toLowerCase()
|
||||
equipment.last_updated
|
||||
.toLowerCase()
|
||||
.includes(filter?.toLowerCase()) ||
|
||||
equipment.status.toLowerCase() == filter.toLowerCase()
|
||||
: // If filter keyword is null then we just pass through everything as if we did not filter at all
|
||||
true
|
||||
)
|
||||
|
|
|
@ -72,7 +72,9 @@ export default function EquipmentListPage() {
|
|||
<Table sx={{ minWidth: "32rem" }} size="medium">
|
||||
<TableHead>
|
||||
<TableRow style={{ backgroundColor: colors.header_color }}>
|
||||
<TableCell style={styles.text_light}>ID</TableCell>
|
||||
<TableCell align="center" style={styles.text_light}>
|
||||
ID
|
||||
</TableCell>
|
||||
<TableCell align="center" style={styles.text_light}>
|
||||
Name
|
||||
</TableCell>
|
||||
|
|
Loading…
Reference in a new issue