Added state management to the dashboard sidebar

This commit is contained in:
Vladyslav Matsiiako
2022-12-22 21:42:24 -05:00
parent 092436b6a3
commit 87a9a587b9
4 changed files with 89 additions and 42 deletions

View File

@@ -72,9 +72,10 @@ export default function Button(props: ButtonProps): JSX.Element {
// Setting the text color for the text and icon
props.color == "mineshaft" && "text-gray-400",
props.color != "mineshaft" && props.color != "red" && "text-black",
props.color != "mineshaft" && props.color != "red" && props.color != "none" && "text-black",
props.color == "red" && "text-gray-200",
activityStatus && props.color != "red" ? "group-hover:text-black" : "",
props.color == "none" && "text-gray-200 text-xl",
activityStatus && props.color != "red" && props.color != "none" ? "group-hover:text-black" : "",
props.size == "icon" && "flex items-center justify-center"
);