chore: collections page disabled until fix is available in electron

This commit is contained in:
Anoop M D 2022-10-18 05:12:56 +05:30
parent 503f0b8a17
commit d6e4d07e2c
2 changed files with 7 additions and 2 deletions

View File

@ -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> */}

View File

@ -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/)",