Menu show toggle on mobile only
This commit is contained in:
1 parent
64b51363a8
commit
df2fec4999
1 file changed
+2
-4
@@ -76,15 +76,13 @@ export const Menu: React.FC<IMenuProps> = props => {
|
|||||||
}
|
}
|
||||||
`}</style>
|
`}</style>
|
||||||
|
|
||||||
{!isMobile ? null : (
|
{isMobile ? (
|
||||||
<MenuToggle
|
<MenuToggle
|
||||||
open={open}
|
open={open}
|
||||||
position={'right'}
|
position={'right'}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
/>
|
/>
|
||||||
)}
|
) : props.items.map((item, index) => (
|
||||||
|
|
||||||
{props.items.map((item, index) => (
|
|
||||||
<li key={index}
|
<li key={index}
|
||||||
className={cx(
|
className={cx(
|
||||||
item.color, {
|
item.color, {
|
||||||
|
|||||||
Reference in new issue
Block a user