update,
This commit is contained in:
@@ -55,11 +55,7 @@ const shouldForwardProp = (prop: string) => !['open', 'active', 'variant', 'sx']
|
||||
/**
|
||||
* @slot root
|
||||
*/
|
||||
const ItemRoot = styled(ButtonBase, { shouldForwardProp })<StyledState>(({
|
||||
active,
|
||||
open,
|
||||
theme,
|
||||
}) => {
|
||||
const ItemRoot = styled(ButtonBase, { shouldForwardProp })<StyledState>(({ active, open, theme }) => {
|
||||
const dotTransitions: Record<'in' | 'out', CSSObject> = {
|
||||
in: { opacity: 0, scale: 0 },
|
||||
out: { opacity: 1, scale: 1 },
|
||||
|
@@ -106,12 +106,7 @@ function NavSubList({ data, subheader, sx, ...other }: NavSubListProps) {
|
||||
</NavLi>
|
||||
) : (
|
||||
<NavLi key={item.title} sx={{ mt: 0.75 }}>
|
||||
<NavItem
|
||||
subItem
|
||||
title={item.title}
|
||||
path={item.path}
|
||||
active={isEqualPath(item.path, pathname)}
|
||||
/>
|
||||
<NavItem subItem title={item.title} path={item.path} active={isEqualPath(item.path, pathname)} />
|
||||
</NavLi>
|
||||
)
|
||||
)}
|
||||
|
Reference in New Issue
Block a user