mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-16 22:29:24 +08:00
Created initial logs page and fixed flex_row vertical alignment
This commit is contained in:
parent
e33e2169a0
commit
94fa62f231
3 changed files with 24 additions and 1 deletions
|
@ -2,6 +2,7 @@ import React from "react";
|
|||
import Dashboard from "./Routes/Dashboard/Dashboard";
|
||||
import Error from "./Routes/Error/Error";
|
||||
import Products from "./Routes/Products/Products";
|
||||
import Logs from "./Routes/Logs/Logs";
|
||||
import Container from "./Components/Container/Container";
|
||||
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
||||
import Store from "./Plugins/Redux/Store/Store";
|
||||
|
@ -29,6 +30,14 @@ const router = createBrowserRouter([
|
|||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Logs",
|
||||
element: (
|
||||
<Container>
|
||||
<Logs />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
]);
|
||||
|
||||
export default function App() {
|
||||
|
|
14
src/Routes/Logs/Logs.tsx
Normal file
14
src/Routes/Logs/Logs.tsx
Normal file
|
@ -0,0 +1,14 @@
|
|||
import * as React from "react";
|
||||
import LogsIcon from "../../Components/Icons/LogsIcon/LogsIcon";
|
||||
import styles from "../../styles";
|
||||
|
||||
export default function Logs() {
|
||||
return (
|
||||
<div style={{ margin: 32, height: "100%" }}>
|
||||
<div style={styles.flex_row}>
|
||||
<LogsIcon size={8} color="white" />
|
||||
<h1 style={styles.text_large}>Logs</h1>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
|
@ -129,7 +129,7 @@ const styles: { [key: string]: React.CSSProperties } = {
|
|||
flex_row: {
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
alignItems: "stretch",
|
||||
alignItems: "center",
|
||||
},
|
||||
flex_column: {
|
||||
display: "flex",
|
||||
|
|
Loading…
Reference in a new issue