File tree Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { Drawer, CssBaseline } from "@mui/material";
8
8
9
9
function App ( ) {
10
10
const [ fetchMetrics , setFetchMetrics ] = useState ( true ) ;
11
- const [ showSettings , setShowSettings ] = useState ( true ) ;
11
+ const [ showSettings , setShowSettings ] = useState ( false ) ;
12
12
13
13
return (
14
14
< BrowserRouter >
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import { Grid , Typography } from "@mui/material" ;
3
+
4
+ export const Chart = ( { content } ) => {
5
+
6
+ return (
7
+ < Grid item xs = { 4 } >
8
+ < Typography color = "primary" > { content } </ Typography >
9
+ </ Grid >
10
+ )
11
+ }
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
- import { Typography , Drawer , Toolbar } from "@mui/material" ;
3
- import { SettingsSidebar } from "./SettingsSidebar.js" ;
2
+ import { useState } from "react" ;
3
+ import { Typography , Grid , Toolbar } from "@mui/material" ;
4
+ import { Chart } from "./Chart.js" ;
4
5
5
6
export const Homepage = ( ) => {
6
-
7
+ const [ content , setContent ] = useState ( 'Content example' ) ;
7
8
return (
8
9
< div >
9
10
< Toolbar > </ Toolbar >
10
11
< Typography color = "primary" > Homepage</ Typography >
12
+ < Grid container spacing = { 2 } justifyContent = "flex-start" alignItems = "flex-start" >
13
+ < Chart content = { content } > </ Chart >
14
+ < Chart content = { content } > </ Chart >
15
+ < Chart content = { content } > </ Chart >
16
+ < Chart content = { content } > </ Chart >
17
+ < Chart content = { content } > </ Chart >
18
+ < Chart content = { content } > </ Chart >
19
+ </ Grid >
11
20
</ div >
12
21
13
22
)
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ export const SettingsSidebar = ({ showSettings }) => {
32
32
33
33
return (
34
34
< Drawer variant = "temporary" anchor = "right" open = { showSettings } >
35
- < Toolbar > </ Toolbar >
36
35
< div className = "flex-1 w-full header-viewport bg-slate-800 p-4" >
37
36
< form noValidate autoComplete = "off" >
38
37
< Typography variant = "h5" > Prometheus Connection</ Typography >
You can’t perform that action at this time.
0 commit comments