From f38867598e414bc879db241eed009277e9052e19 Mon Sep 17 00:00:00 2001 From: Piyush Sharma Date: Tue, 5 Apr 2022 02:19:08 -0400 Subject: [PATCH 1/4] Setup Dashboard Page --- sports-matcher/client/src/pages/Dashboard.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sports-matcher/client/src/pages/Dashboard.js diff --git a/sports-matcher/client/src/pages/Dashboard.js b/sports-matcher/client/src/pages/Dashboard.js new file mode 100644 index 0000000..c0af309 --- /dev/null +++ b/sports-matcher/client/src/pages/Dashboard.js @@ -0,0 +1,11 @@ +import React from "react"; +// import { apiClient } from "../utils/httpClients"; + +export default class Dashboard extends React.Component{ + constructor(props) { + super(props); + } + render() { + return(

Dashboard

); + } +} \ No newline at end of file From 2831e2a39e73661f28fae0595a1ce7eb7f2ddf3d Mon Sep 17 00:00:00 2001 From: Piyush Sharma Date: Tue, 5 Apr 2022 02:19:17 -0400 Subject: [PATCH 2/4] Added route --- sports-matcher/client/src/Layout.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sports-matcher/client/src/Layout.js b/sports-matcher/client/src/Layout.js index 3fe80fb..8f4d2ef 100644 --- a/sports-matcher/client/src/Layout.js +++ b/sports-matcher/client/src/Layout.js @@ -7,6 +7,7 @@ import Navbar from "react-bootstrap/Navbar"; import { Container, Nav, NavbarBrand } from "react-bootstrap"; import NavbarToggle from "react-bootstrap/esm/NavbarToggle"; import NavbarCollapse from "react-bootstrap/esm/NavbarCollapse"; +import Dashboard from "./pages/Dashboard"; export default class Layout extends React.Component { render() { return ( @@ -28,8 +29,8 @@ export default class Layout extends React.Component {
- }> - + }> + }>