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 { useDispatch } from 'react-redux';
import { toggleLeftMenuBar } from 'providers/ReduxStore/slices/app'; import { toggleLeftMenuBar } from 'providers/ReduxStore/slices/app';
import BrunoSupport from 'components/BrunoSupport'; import BrunoSupport from 'components/BrunoSupport';
import { isElectron } from 'utils/common/platform';
import StyledWrapper from './StyledWrapper'; import StyledWrapper from './StyledWrapper';
const MenuBar = () => { const MenuBar = () => {
const router = useRouter(); const router = useRouter();
const dispatch = useDispatch(); const dispatch = useDispatch();
const [openBrunoSupport, setOpenBrunoSupport] = useState(false); const [openBrunoSupport, setOpenBrunoSupport] = useState(false);
const isPlatformElectron = isElectron();
const getClassName = (menu) => { const getClassName = (menu) => {
return router.pathname === menu ? "active menu-item": "menu-item"; return router.pathname === menu ? "active menu-item": "menu-item";
@ -24,11 +26,13 @@ const MenuBar = () => {
<IconCode size={28} strokeWidth={1.5}/> <IconCode size={28} strokeWidth={1.5}/>
</div> </div>
</Link> </Link>
<Link href="/collections"> {isPlatformElectron ? (
<Link href="/collections">
<div className={getClassName('/collections')}> <div className={getClassName('/collections')}>
<IconFiles size={28} strokeWidth={1.5}/> <IconFiles size={28} strokeWidth={1.5}/>
</div> </div>
</Link> </Link>
) : null}
{/* <div className="menu-item"> {/* <div className="menu-item">
<IconUsers size={28} strokeWidth={1.5}/> <IconUsers size={28} strokeWidth={1.5}/>
</div> */} </div> */}

View File

@ -2,6 +2,7 @@
"version": "0.1.0", "version": "0.1.0",
"name": "bruno", "name": "bruno",
"description": "Opensource API Client", "description": "Opensource API Client",
"homepage": "https://www.usebruno.com",
"private": true, "private": true,
"main": "src/index.js", "main": "src/index.js",
"author": "Anoop M D <anoop.md1421@gmail.com> (https://helloanoop.com/)", "author": "Anoop M D <anoop.md1421@gmail.com> (https://helloanoop.com/)",