Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
alonkeyval committed Aug 3, 2023
1 parent 5ad8d1d commit 4e02ce6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
5 changes: 1 addition & 4 deletions frontend/webapp/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react";
import { ThemeProvider } from "styled-components";
import theme from "@/styles/palette";
import { QueryClient, QueryClientProvider } from "react-query";
import Head from "next/head";
import { Metadata } from "next";

const LAYOUT_STYLE: React.CSSProperties = {
margin: 0,
Expand Down Expand Up @@ -31,9 +31,6 @@ export default function RootLayout({
<html lang="en">
<QueryClientProvider client={queryClient}>
<ThemeProvider theme={theme}>
<Head>
<title>Odigos</title>
</Head>
<body suppressHydrationWarning={true} style={LAYOUT_STYLE}>
{children}
</body>
Expand Down
7 changes: 2 additions & 5 deletions frontend/webapp/app/overview/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// "use client";
import { Menu } from "@/components/side.menu";
import theme from "@/styles/palette";
import { METADATA } from "@/utils/constants";
import { Metadata } from "next";
import React from "react";

Expand All @@ -15,10 +15,7 @@ const CHILDREN_STYLE = {
width: "100%",
height: "93%",
};
export const metadata: Metadata = {
title: "Odigos",
};

export const metadata: Metadata = METADATA;
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<div style={LAYOUT_STYLE}>
Expand Down
8 changes: 8 additions & 0 deletions frontend/webapp/app/setup/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { METADATA } from "@/utils/constants";
import { Metadata } from "next";

export const metadata: Metadata = METADATA;

export default function Layout({ children }: { children: React.ReactNode }) {
return <div>{children}</div>;
}
5 changes: 5 additions & 0 deletions frontend/webapp/utils/constants/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ export const CONFIG = {
APPS_SELECTED: "APPS_SELECTED",
FINISHED: "FINISHED",
};

export const METADATA = {
title: "Odigos",
icons: "https://d2q89wckrml3k4.cloudfront.net/logo.png",
};
2 changes: 1 addition & 1 deletion frontend/webapp/utils/constants/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { ROUTES } from "./routes";
export { CONFIG } from "./config";
export { CONFIG, METADATA } from "./config";
export { SETUP, OVERVIEW, NOTIFICATION, ACTION } from "./string";
export { API, QUERIES } from "./urls";

0 comments on commit 4e02ce6

Please sign in to comment.