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>
|
||||
|
||||
{!isMobile ? null : (
|
||||
{isMobile ? (
|
||||
<MenuToggle
|
||||
open={open}
|
||||
position={'right'}
|
||||
onClick={onClick}
|
||||
/>
|
||||
)}
|
||||
|
||||
{props.items.map((item, index) => (
|
||||
) : props.items.map((item, index) => (
|
||||
<li key={index}
|
||||
className={cx(
|
||||
item.color, {
|
||||
|
||||
Reference in new issue
Block a user