Skip to content
Snippets Groups Projects
Commit d3a2e9af authored by Emil Steinkopf's avatar Emil Steinkopf
Browse files

routeing finished

parent 33ff4f00
No related branches found
No related tags found
No related merge requests found
import React from "react"; import React from "react";
import Linechart from "./Chartjs/Linechart"; import LineChart from "./Chartjs/Linechart";
import Dashboard from "./Dashboard/Dashboard"; import Dashboard from "./Dashboard/Dashboard";
import Login from "./Login/Login"; import Login from "./Login/Login";
import LineChartG2 from "./G2plot/LineChartG2"; import LineChartG2 from "./G2plot/LineChartG2";
......
...@@ -22,16 +22,19 @@ const SideNav = () => { ...@@ -22,16 +22,19 @@ const SideNav = () => {
<div className="logo" /> <div className="logo" />
<Menu theme="dark" mode="inline" defaultSelectedKeys={["4"]}> <Menu theme="dark" mode="inline" defaultSelectedKeys={["4"]}>
<Menu.Item key="1" icon={<UserOutlined />}> <Menu.Item key="1" icon={<UserOutlined />}>
nav 1 <Link to="/dashboard">Home</Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="2" icon={<VideoCameraOutlined />}> <Menu.Item key="2" icon={<VideoCameraOutlined />}>
nav 2 <Link to="admin">Admin</Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="3" icon={<UploadOutlined />}> <Menu.Item key="3" icon={<UploadOutlined />}>
nav 3 <Link to="/linechartg2">LinechartG2</Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="4" icon={<UserOutlined />}> <Menu.Item key="4" icon={<UserOutlined />}>
nav 4 <Link to="/linechart">Linechart</Link>
</Menu.Item>
<Menu.Item key="5" icon={<UserOutlined />}>
<Link to="/login">Login</Link>
</Menu.Item> </Menu.Item>
</Menu> </Menu>
</Sider> </Sider>
......
...@@ -60,7 +60,7 @@ const Login = () => { ...@@ -60,7 +60,7 @@ const Login = () => {
</Form.Item> </Form.Item>
<Form.Item> <Form.Item>
<Link to="/dashboard"> <Link to="/">
<Button <Button
type="primary" type="primary"
htmlType="submit" htmlType="submit"
......
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