-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add drop-down menu to load a previous config (#586)
- Loading branch information
Showing
5 changed files
with
100 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Chip, Tooltip } from "@mui/material"; | ||
import React from "react"; | ||
|
||
const HashChip: React.FC<{ hash: string }> = ({ hash }) => ( | ||
<Tooltip title="This hash of the config lets you see when the same config appears multiple times."> | ||
<Chip | ||
size="small" | ||
label={hash} | ||
sx={(theme) => ({ | ||
backgroundColor: `#${hash}`, | ||
color: theme.palette.getContrastText(`#${hash}`), | ||
cursor: "unset", | ||
fontFamily: "Monospace", | ||
})} | ||
/> | ||
</Tooltip> | ||
); | ||
|
||
export default React.memo(HashChip); |
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