mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 01:14:23 +01:00
chore: collections page disabled until fix is available in electron
This commit is contained in:
parent
503f0b8a17
commit
d6e4d07e2c
@ -5,12 +5,14 @@ import { IconCode, IconFiles, IconUser, IconUsers, IconSettings, IconChevronsLef
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { toggleLeftMenuBar } from 'providers/ReduxStore/slices/app';
|
||||
import BrunoSupport from 'components/BrunoSupport';
|
||||
import { isElectron } from 'utils/common/platform';
|
||||
import StyledWrapper from './StyledWrapper';
|
||||
|
||||
const MenuBar = () => {
|
||||
const router = useRouter();
|
||||
const dispatch = useDispatch();
|
||||
const [openBrunoSupport, setOpenBrunoSupport] = useState(false);
|
||||
const isPlatformElectron = isElectron();
|
||||
|
||||
const getClassName = (menu) => {
|
||||
return router.pathname === menu ? "active menu-item": "menu-item";
|
||||
@ -24,11 +26,13 @@ const MenuBar = () => {
|
||||
<IconCode size={28} strokeWidth={1.5}/>
|
||||
</div>
|
||||
</Link>
|
||||
<Link href="/collections">
|
||||
{isPlatformElectron ? (
|
||||
<Link href="/collections">
|
||||
<div className={getClassName('/collections')}>
|
||||
<IconFiles size={28} strokeWidth={1.5}/>
|
||||
</div>
|
||||
</Link>
|
||||
</Link>
|
||||
) : null}
|
||||
{/* <div className="menu-item">
|
||||
<IconUsers size={28} strokeWidth={1.5}/>
|
||||
</div> */}
|
||||
|
@ -2,6 +2,7 @@
|
||||
"version": "0.1.0",
|
||||
"name": "bruno",
|
||||
"description": "Opensource API Client",
|
||||
"homepage": "https://www.usebruno.com",
|
||||
"private": true,
|
||||
"main": "src/index.js",
|
||||
"author": "Anoop M D <anoop.md1421@gmail.com> (https://helloanoop.com/)",
|
||||
|
Loading…
Reference in New Issue
Block a user