remove chip, add coloredlabel, add render options to autocomplete

This commit is contained in:
Alex Holliday committed 2026-05-20 11:36:03 -07:00
1 parent b981427d8d
commit 67bba1479c
3 files changed
+26 -53

No files matched your search

@@ -1,30 +0,0 @@
import MuiChip from "@mui/material/Chip";
import Typography from "@mui/material/Typography";
import { useTheme } from "@mui/material";
interface ChipProps {
text: string;
color?: string;
}
export const Chip = ({ text, color }: ChipProps) => {
const theme = useTheme();
const textColor = color
? theme.palette.getContrastText(color)
: theme.palette.text.primary;
return (
<MuiChip
size="small"
label={
<Typography
variant="body2"
color={textColor}
>
{text}
</Typography>
}
sx={{
backgroundColor: color,
}}
/>
);
};
@@ -100,10 +100,7 @@ export const ColoredLabel = ({ text, color }: { text: string; color: string }) =
return (
<BaseBox
sx={{
display: "inline-flex",
flexDirection: "row",
alignItems: "center",
justifyContent: "center",
width: "fit-content",
padding: theme.spacing(1, 3),
color: color,
borderColor: color,