update,
This commit is contained in:
@@ -13,16 +13,8 @@ import { Iconify, iconifyClasses } from '../../iconify';
|
||||
export type NavSubheaderProps = ListSubheaderProps & { open?: boolean };
|
||||
|
||||
export const NavSubheader = styled(({ open, children, className, ...other }: NavSubheaderProps) => (
|
||||
<ListSubheader
|
||||
disableSticky
|
||||
component="div"
|
||||
{...other}
|
||||
className={mergeClasses([navSectionClasses.subheader, className])}
|
||||
>
|
||||
<Iconify
|
||||
width={16}
|
||||
icon={open ? 'eva:arrow-ios-downward-fill' : 'eva:arrow-ios-forward-fill'}
|
||||
/>
|
||||
<ListSubheader disableSticky component="div" {...other} className={mergeClasses([navSectionClasses.subheader, className])}>
|
||||
<Iconify width={16} icon={open ? 'eva:arrow-ios-downward-fill' : 'eva:arrow-ios-forward-fill'} />
|
||||
{children}
|
||||
</ListSubheader>
|
||||
))(({ theme }) => ({
|
||||
|
@@ -27,10 +27,7 @@ export function NavSectionHorizontal({
|
||||
const cssVars = { ...navSectionCssVars.horizontal(theme), ...overridesVars };
|
||||
|
||||
return (
|
||||
<Scrollbar
|
||||
sx={{ height: 1 }}
|
||||
slotProps={{ contentSx: { height: 1, display: 'flex', alignItems: 'center' } }}
|
||||
>
|
||||
<Scrollbar sx={{ height: 1 }} slotProps={{ contentSx: { height: 1, display: 'flex', alignItems: 'center' } }}>
|
||||
<Nav
|
||||
className={mergeClasses([navSectionClasses.horizontal, className])}
|
||||
sx={[
|
||||
@@ -66,14 +63,7 @@ export function NavSectionHorizontal({
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
function Group({
|
||||
items,
|
||||
render,
|
||||
cssVars,
|
||||
slotProps,
|
||||
checkPermissions,
|
||||
enabledRootRedirect,
|
||||
}: NavGroupProps) {
|
||||
function Group({ items, render, cssVars, slotProps, checkPermissions, enabledRootRedirect }: NavGroupProps) {
|
||||
return (
|
||||
<NavLi>
|
||||
<NavUl sx={{ flexDirection: 'row', gap: 'var(--nav-item-gap)' }}>
|
||||
|
Reference in New Issue
Block a user