diff --git a/ui/.eslintrc b/ui/.eslintrc index 67898d0633..d1a2dc10ac 100644 --- a/ui/.eslintrc +++ b/ui/.eslintrc @@ -10,6 +10,7 @@ "plugin:@typescript-eslint/recommended" ], "rules": { - "no-debugger": 0 + "no-debugger": 0, + "@typescript-eslint/no-explicit-any": ["off"] } } diff --git a/ui/src/App.css b/ui/src/App.css index 1422c1c668..f398015640 100644 --- a/ui/src/App.css +++ b/ui/src/App.css @@ -1,3 +1,10 @@ +html, +body, +#root, +.MuiScopedCssBaseline-root { + height: 100%; +} + .App-side-nav-link { text-decoration: none; color: inherit; @@ -6,3 +13,8 @@ .react-flow__attribution { display: none !important; } + +.logo { + margin-left: -15px; + margin-top: 5px; +} diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 9df5ee31cb..f8fc5134cc 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -13,7 +13,7 @@ import ListItemText from "@mui/material/ListItemText"; import { Breadcrumbs } from "./components/breadcrumbs/Breadcrumbs"; import { Namespaces } from "./components/namespaces/Namespaces"; import { Pipeline } from "./components/pipeline/Pipeline"; - +import logo from "./images/icon-on-blue-bg.png"; import "./App.css"; const drawerWidth = 240; @@ -40,10 +40,12 @@ function App() { }} > + logo {node?.data?.source && ( diff --git a/ui/src/utils/fetchWrappers/fetch.ts b/ui/src/utils/fetchWrappers/fetch.ts index e82811cbd9..e03b938f25 100644 --- a/ui/src/utils/fetchWrappers/fetch.ts +++ b/ui/src/utils/fetchWrappers/fetch.ts @@ -10,7 +10,7 @@ export const useFetch = ( fetchOptions?: RequestInit, options?: Options ) => { - const [data, setData] = useState(); + const [data, setData] = useState(undefined); const [error, setError] = useState(undefined); const [loading, setLoading] = useState( (options && !options.skip) || true