Skip to content

Commit

Permalink
Merge pull request #899 from Gim3l/studio_build_fix
Browse files Browse the repository at this point in the history
fix studio build issues
  • Loading branch information
marsninja authored Feb 8, 2023
2 parents e0ba5f7 + 2961838 commit b480fb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
6 changes: 0 additions & 6 deletions jaseci_studio/mocks/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ export function renderWithClient(ui: React.ReactElement) {
),
};
}

export function renderHookWithClient(hook: () => unknown) {
const testQueryClient = createTestQueryClient();

return renderHook(hook, { wrapper });
}
13 changes: 2 additions & 11 deletions jaseci_studio/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@ import { theme } from "../../theme";
import ReactQuery from "../components/ReactQuery";
import { NavbarMinimal } from "../components/Navbar";
import { NotificationsProvider } from "@mantine/notifications";
import { useEffect, useState } from "react";
import { useState } from "react";

export default function App(props: AppProps) {
const { Component, pageProps } = props;
const [showSidebar, setShowSidebar] = useState(false);

useEffect(() => {
if (window?.__TAURI_METADATA__?.__currentWindow?.label === "main") {
setShowSidebar(true);
}
}, []);

return (
<>
Expand All @@ -36,9 +29,7 @@ export default function App(props: AppProps) {
<ReactQuery>
<MantineProvider withGlobalStyles withNormalizeCSS theme={theme}>
<div data-theme="greenheart">
<AppShell
navbar={showSidebar ? <NavbarMinimal></NavbarMinimal> : <></>}
>
<AppShell navbar={<NavbarMinimal></NavbarMinimal>}>
<NotificationsProvider>
<Component {...pageProps} />
</NotificationsProvider>
Expand Down

0 comments on commit b480fb8

Please sign in to comment.