Skip to content
Snippets Groups Projects
Commit 0cbef4e1 authored by Johanna Szepanski's avatar Johanna Szepanski
Browse files

changed default env value

parent 1df3cd15
No related branches found
No related tags found
No related merge requests found
Pipeline #215635 passed
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
* https://mui.com/material-ui/react-app-bar/ * https://mui.com/material-ui/react-app-bar/
* https://mui.com/material-ui/api/app-bar/ * https://mui.com/material-ui/api/app-bar/
*/ */
import { useEffect } from "react";
import { AppBar, Toolbar, Typography } from "@mui/material"; import { AppBar, Toolbar, Typography } from "@mui/material";
import { useGlobalAppBarContext } from "../GlobalAppBar/GlobalAppBarContext"; import { useGlobalAppBarContext } from "../GlobalAppBar/GlobalAppBarContext";
...@@ -24,10 +23,6 @@ export const ButtonAppBar = ({ ...@@ -24,10 +23,6 @@ export const ButtonAppBar = ({
}: ButtonAppBarProps) => { }: ButtonAppBarProps) => {
const { pageTitle, environment } = useGlobalAppBarContext(); const { pageTitle, environment } = useGlobalAppBarContext();
useEffect(() => {
console.log("ENVIRONMENT", environment); //eslint-disable-line
}, [environment]);
return ( return (
<AppBar <AppBar
className="CeuiButtonAppBar" className="CeuiButtonAppBar"
......
...@@ -4,7 +4,7 @@ import { GlobalAppBarContextType } from "./GlobalAppBarProvider"; ...@@ -4,7 +4,7 @@ import { GlobalAppBarContextType } from "./GlobalAppBarProvider";
export const defaultValue = { export const defaultValue = {
pageTitle: "", pageTitle: "",
updatePageTitle: () => "", updatePageTitle: () => "",
environment: "PROD", environment: "",
setEnvironment: () => "" setEnvironment: () => ""
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment