-
-
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.
QoL: search teams for transfers, add legend to ranking
- Loading branch information
1 parent
8a79df7
commit 6b9c8b6
Showing
6 changed files
with
105 additions
and
37 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
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
import { Dialog, DialogContent, DialogTitle, IconButton, Typography } from '@mui/material'; | ||
|
||
import CloseIcon from '@mui/icons-material/Close'; | ||
import { getHeaderColumns } from '@/app/cbb/ranking/columns'; | ||
|
||
const Legend = ({ open, onClose, columns, rankView }) => { | ||
|
||
const headers = getHeaderColumns({rankView}) | ||
|
||
return ( | ||
<> | ||
<Dialog | ||
open={open} | ||
onClose={onClose} | ||
> | ||
<DialogTitle id="alert-dialog-title-legend"> | ||
<div style = {{'display': 'flex', 'justifyContent': 'space-between'}}> | ||
{'Column legend'} | ||
{<IconButton aria-label="close" onClick={onClose}><CloseIcon /></IconButton>} | ||
</div> | ||
</DialogTitle> | ||
<DialogContent> | ||
{ | ||
columns.map((column) => { | ||
return ( | ||
<div style = {{'display': 'flex', 'margin': '5px 0px'}}> | ||
<Typography color = 'text.secondary' variant = 'subtitle2'>{headers[column].label}:</Typography> | ||
<Typography style = {{'marginLeft': 10}} variant = 'body2'>{headers[column].tooltip}</Typography> | ||
</div> | ||
); | ||
}) | ||
} | ||
</DialogContent> | ||
</Dialog> | ||
</> | ||
); | ||
} | ||
|
||
export default Legend; |
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