-
-
- {items.map(({ icon, title, description }, index) => (
+
+ {items.map(({icon, title, description}, index) => (
+ handleItemClick(index)}
+ sx={[
+ (theme) => ({
+ p: 2,
+ height: '100%',
+ width: '100%',
+ '&:hover': {
+ backgroundColor: (theme.vars || theme).palette.action.hover,
+ },
+ }),
+ selectedItemIndex === index && {
+ backgroundColor: 'action.selected',
+ },
+ ]}
+ >
handleItemClick(index)}
sx={[
- (theme) => ({
- p: 2,
- height: '100%',
+ {
width: '100%',
- '&:hover': {
- backgroundColor: (theme.vars || theme).palette.action.hover,
- },
- }),
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'left',
+ gap: 1,
+ textAlign: 'left',
+ textTransform: 'none',
+ color: 'text.secondary',
+ },
selectedItemIndex === index && {
- backgroundColor: 'action.selected',
+ color: 'text.primary',
},
]}
>
-
- {icon} {title}
- {description}
-
+ {icon} {title}
+ {description}
- ))}
-
-
-
+
+ ))}
+