Skip to content

Commit

Permalink
ContacList page created and route added
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmal1064 committed Feb 24, 2023
1 parent a58716d commit 2a60ac7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/App.jsx
Expand Up @@ -2,6 +2,8 @@ import { Container } from "react-bootstrap";
import { Route, Routes } from "react-router-dom";
import AuthRoute from "./components/AuthRoute";
import NavBar from "./components/NavBar";
import ContactProvider from "./context/ContactProvider";
import ContactList from "./pages/ContactList";
import Home from "./pages/Home";
import Login from "./pages/Login";
import PasswordReset from "./pages/PasswordReset";
Expand All @@ -18,6 +20,14 @@ const App = () => {
<Route element={<AuthRoute />}>
<Route path="/" element={<Home />} />
<Route path="/home" element={<Home />} />
<Route
path="/contacts"
element={
<ContactProvider>
<ContactList />
</ContactProvider>
}
/>
</Route>
<Route path="/register" element={<Register />} />
<Route path="/login" element={<Login />} />
Expand Down
21 changes: 21 additions & 0 deletions src/pages/ContactList.jsx
@@ -0,0 +1,21 @@
import { Button } from "react-bootstrap";

const ContactList = () => {
return (
<div>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
marginTop: "10px",
marginBottom: "10px"
}}>
<h2 className="text-center">Contact List</h2>
<Button>Add Contact</Button>
</div>
</div>
);
};

export default ContactList;

0 comments on commit 2a60ac7

Please sign in to comment.