Skip to content

Commit

Permalink
feat: change page routing (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZACHSTRIVES committed Mar 8, 2024
1 parent 04ca147 commit 05f75be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/components/Navbar/src/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {Logo} from "@/components/Navbar/src/components/Logo";
import {LoginButton} from "./components/LoginButton";
import {User, UserLogin} from "./components/UserLogin";
import {SchemaSelector} from "@/components/SchemaSelector";
import {inDevEnvironment} from "@/utils/devUtils";

export type NavBarProps = {}

Expand Down Expand Up @@ -77,7 +78,7 @@ export const NavBar: FunctionComponent<NavBarProps> = () => {
size={22} duration={0.6}/>
</div>

<SchemaSelector/>
{inDevEnvironment && <SchemaSelector/>}

</Nav.Header>

Expand Down
2 changes: 2 additions & 0 deletions src/components/Toolbar/src/components/GenerateButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {FormattedMessage} from "@/locale";
import {ComponentSize} from "@/constants/enums";
import {useDispatch} from "react-redux";
import {doSetShowExportModal} from "@/reducers/export/exportActions";
import {inDevEnvironment} from "@/utils/devUtils";

export type GenerateButtonProps = {
size: ComponentSize;
Expand All @@ -22,6 +23,7 @@ export const GenerateButton: React.FC<GenerateButtonProps> = ({...props}) => {

return (
<Button
disabled={!inDevEnvironment}
onClick={openGenerateModal}
loading={false}
icon={<IconPlayCircle/>}
Expand Down
7 changes: 2 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from "react";
import Workspace from "@/pages/workspace";

export default function Home() {
return(
<div>
<h1>Home</h1>
</div>
)
return <Workspace></Workspace>
}
1 change: 0 additions & 1 deletion src/pages/workspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {ColorMode, PanelsOrientation} from "@/constants/enums";
import {doGeneratePreviewData, doSetPanelsOrientation} from "@/reducers/workspace/workspaceActions";
import Head from "next/head";
import {useIntl} from "@/locale";
import {FilesPanel} from "@/components/FilesPanel/src";
import {selectPanelsOrientation, selectPreviewData} from "@/reducers/workspace/workspaceSelectors";
import {selectColorMode} from "@/reducers/app/appSelectors";
import {ExportModal} from "@/components/Exporter";
Expand Down

0 comments on commit 05f75be

Please sign in to comment.