add a colored label
This commit is contained in:
1 parent
02640c3155
commit
896d1b784b
2 files changed
+23
-2
No files matched your search
@@ -93,3 +93,23 @@ export const ValueLabel = ({ value, text }: { value: ValueType; text: string })
|
|||||||
</BaseBox>
|
</BaseBox>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const ColoredLabel = ({ text, color }: { text: string; color: string }) => {
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<BaseBox
|
||||||
|
sx={{
|
||||||
|
display: "inline-flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
padding: theme.spacing(1, 3),
|
||||||
|
color: color,
|
||||||
|
borderColor: color,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Typography>{text}</Typography>
|
||||||
|
</BaseBox>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -17,6 +17,7 @@ import {
|
|||||||
User,
|
User,
|
||||||
Lock,
|
Lock,
|
||||||
Users,
|
Users,
|
||||||
|
Tag,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
|
|
||||||
export const getMenu = (t: Function) => {
|
export const getMenu = (t: Function) => {
|
||||||
@@ -42,9 +43,9 @@ export const getMenu = (t: Function) => {
|
|||||||
icon: <Icon icon={Bell} />,
|
icon: <Icon icon={Bell} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: t("components.sidebar.menu.notifications"),
|
name: t("components.sidebar.menu.tags"),
|
||||||
path: "tags",
|
path: "tags",
|
||||||
icon: <Icon icon={Bell} />,
|
icon: <Icon icon={Tag} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: t("components.sidebar.menu.checks"),
|
name: t("components.sidebar.menu.checks"),
|
||||||
|
|||||||
Reference in new issue
Block a user