0 ? ` (${filter.overdueCount} overdue)` : ''}`
+ }
+ placement='bottom'
+ >
+ !hasWarning && onFilterClick(filter.id)}>
+ handleContextMenu(e, filter)}
sx={{
- whiteSpace: 'nowrap',
- maxWidth: 200,
- overflow: 'hidden',
- textOverflow: 'ellipsis',
+ cursor: hasWarning ? 'not-allowed' : 'pointer',
+ transition: 'all 0.2s ease',
+ px: 1.0,
+
+ opacity: hasWarning ? 0.7 : isActive ? 1 : 0.85,
...(hasCustomColor && {
- color: textColor,
+ backgroundColor: `${filter.color} !important`,
+ color: `${textColor} !important`,
+ '&:hover': {
+ backgroundColor: `${filter.color} !important`,
+ filter: 'brightness(0.95)',
+ opacity: 1,
+ },
}),
}}
+ startDecorator={
+
+ {isActive ? (
+
+ ) : (
+
+ {filter.count}
+
+ )}
+
+ }
+ // endDecorator={
+ //
+ // {hasWarning && }
+ // {!hasWarning && filter.overdueCount > 0 && (
+ //
+ // {filter.overdueCount}
+ //
+ // )}
+ //
+ // }
>
- {filter.name}
-
-
-
-
- )
- })}
+
+ {filter.name}
+
+