mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
Implemented the generalized solution with backwards compatibility
This commit is contained in:
@@ -10,7 +10,8 @@ const paletteColor = {
|
||||
no: paletteToMui(palette.aRed),
|
||||
} as const;
|
||||
|
||||
// TODO: Create a more generalised solution for this
|
||||
// Switched to a more generalized solution - adding backwards compatibility to maintain [Yes, No, Maybe] colors even if no color is selected
|
||||
// Modified by @devsgnr
|
||||
export default function FormattedChip(props: ChipProps) {
|
||||
const defaultColor = paletteToMui(palette.aGray);
|
||||
const { mode } = useTheme().palette;
|
||||
|
||||
Reference in New Issue
Block a user