Skip to content

Commit

Permalink
Add comment to contributors page
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelef committed Jan 19, 2025
1 parent f16e588 commit 2928fca
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions website/src/ContributorsTimeSeriesChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import Button from "@mui/material/Button";
import InputLabel from "@mui/material/InputLabel";
import MenuItem from "@mui/material/MenuItem";
import Select from "@mui/material/Select";
import Alert from "@mui/material/Alert";
import IconButton from "@mui/material/IconButton";
import CloseIcon from "@mui/icons-material/Close";
import LoadingButton from "@mui/lab/LoadingButton";
import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
import SendIcon from "@mui/icons-material/Send";
Expand Down Expand Up @@ -105,6 +108,10 @@ function ContributorsTimeSeriesChart() {
defaultRepo = `${user}/${repository}`;
}

const handleClose = () => {
setOpen(false);
};

const chart_props = {
type: "timeseries",
width: "100%",
Expand Down Expand Up @@ -572,6 +579,25 @@ function ContributorsTimeSeriesChart() {

return (
<div>
<div>
{open && (
<Alert
severity="info"
action={
<IconButton
aria-label="close"
color="inherit"
size="small"
onClick={handleClose}
>
<CloseIcon fontSize="inherit" />
</IconButton>
}
>
Contributors are calculated as new Github users who had a PR merged
</Alert>
)}
</div>
<ToastContainer
position="top-center"
autoClose={5000}
Expand Down

0 comments on commit 2928fca

Please sign in to comment.