Skip to content

Commit

Permalink
fixed pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alonkeyval committed Jul 23, 2023
1 parent b0ca882 commit b1e57c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions frontend/webapp/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ export default function App() {
switch (installation) {
case CONFIG.NEW:
case CONFIG.APPS_SELECTED:
router.push(ROUTES.SETUP);
router.push(`${ROUTES.SETUP}${state}`);
case CONFIG.FINISHED:
router.push(ROUTES.OVERVIEW);
}
}

}
3 changes: 2 additions & 1 deletion frontend/webapp/components/side.menu/menu/items.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { OVERVIEW, ROUTES } from "@/utils/constants";
import * as ICONS from "../../../assets/icons/side.menu";
import { MenuItem } from "./menu";

export const MENU_ITEMS = [
export const MENU_ITEMS: MenuItem[] = [
{
id: 1,
name: OVERVIEW.MENU.OVERVIEW,
Expand Down
2 changes: 1 addition & 1 deletion frontend/webapp/components/side.menu/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useRouter } from "next/navigation";
import { OVERVIEW } from "@/utils/constants";
import { MENU_ITEMS } from "./items";

interface MenuItem {
export interface MenuItem {
id: number;
name: string;
icons: {
Expand Down

0 comments on commit b1e57c9

Please sign in to comment.