Skip to content

Commit

Permalink
Doing some changes on my routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Payne680 committed Apr 29, 2023
1 parent d7e1275 commit 40e5d1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/Components/Organisms/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ function Sidebar() {
<div className={css.container}>
<img alt="logo" src={logo} className={css.logo} />
<div className={css.menu}>
<NavLink to="/dashboard" className={css.item} title="Dashboard">
<MdSpaceDashboard size={30} />
</NavLink>
<NavLink to="board" className={css.item} title="Board">
<FaTasks size={30} />
</NavLink>

<NavLink to="/dashboard" className={css.item} title="Dashboard">
<MdSpaceDashboard size={30} />
</NavLink>
<NavLink to="/dashboard" className={css.item} title="Calendar">
<AiFillCalendar size={30} />
</NavLink>
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Dashboard() {
<Sidebar />

{/* making the dashboard as the default route */}
{pathname === '/' && <Navigate to="/dashboard" />}
{pathname === '/' && <Navigate to="/board" />}

<div className="dashboard">
<div className="topBaseGradients">
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Templates/CreateFirstTeam.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function CreateFirstTeam() {
</p>
</div>

<Link to="/dashboard">
<Link to="/dashboard/board">
<Button title="Create your workspace" />{' '}
</Link>
</div>
Expand Down

0 comments on commit 40e5d1b

Please sign in to comment.