test(web): App

This commit is contained in:
Paul Armstrong
2021-02-13 20:37:22 -08:00
committed by Blake Blackshear
parent c12aec7c8f
commit 3348f04889
14 changed files with 38 additions and 16 deletions

View File

@@ -2,6 +2,7 @@ import { h, Fragment } from 'preact';
import LinkedLogo from './components/LinkedLogo';
import { Match } from 'preact-router/match';
import { memo } from 'preact/compat';
import { ENV } from './env';
import { useConfig } from './api';
import { useMemo } from 'preact/hooks';
import NavigationDrawer, { Destination, Separator } from './components/NavigationDrawer';
@@ -30,7 +31,7 @@ export default function Sidebar() {
<Destination href="/debug" text="Debug" />
<Separator />
<div className="flex flex-grow" />
{import.meta.env.MODE !== 'production' ? (
{ENV !== 'production' ? (
<Fragment>
<Destination href="/styleguide" text="Style Guide" />
<Separator />