Skip to content

Commit

Permalink
Merge pull request #56 from Robert-M-Lucas/dev-remove-test-page
Browse files Browse the repository at this point in the history
Removed test page
  • Loading branch information
Robert-M-Lucas authored May 2, 2024
2 parents 1c3104a + 08218fb commit 994912e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function Header() {
{/* Links to transactions page with table of expenses */}
<li><Link to="/transactions" className={`header-item ${isLoggedIn ? "header-item" : "text-muted bg-transparent"}`}>Transactions</Link></li>

<li><Link to="/tiles" className="header-item">Firestore Test</Link></li>
{/*<li><Link to="/tiles" className="header-item">Firestore Test</Link></li>*/}

{displayName && <li><span className="username">{displayName}</span></li>}

Expand Down
60 changes: 30 additions & 30 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import {createBrowserRouter} from "react-router-dom";
import DashboardPage from "./pages/dashboard/DashboardPage.tsx";
import _404Page from "./pages/404/404.tsx";
import IndexPage from "./pages/index/IndexPage.tsx";
import {SampleSidebar} from "./pages/samples/sidebar/SampleSidebar.tsx";
import {SampleSidebarHeader} from "./pages/samples/sidebar_header/SampleSidebarHeader.tsx";
import {SampleModal} from "./pages/samples/modal/SampleModal.tsx";
import GraphDashboard from "./pages/dashboard/DashboardPage.tsx";
import {TestFirestorePage} from "./pages/test firestore/TestFirestore.tsx";
// import {SampleSidebar} from "./pages/samples/sidebar/SampleSidebar.tsx";
// import {SampleSidebarHeader} from "./pages/samples/sidebar_header/SampleSidebarHeader.tsx";
// import {SampleModal} from "./pages/samples/modal/SampleModal.tsx";
// import GraphDashboard from "./pages/dashboard/DashboardPage.tsx";
// import {TestFirestorePage} from "./pages/test firestore/TestFirestore.tsx";
import {TransactionPage} from "./pages/transactions/TransactionPage.tsx";

// ? Routing - see https://reactrouter.com/en/main
Expand All @@ -25,29 +25,29 @@ export const router = createBrowserRouter([
path: "/transactions",
element: <TransactionPage/>,
},
{
path: "/user-tiles",
element: <IndexPage/>,
errorElement:<_404Page/>
},
{
path: "/graphs",
element: <GraphDashboard />,
},
{
path: "/sample_sidebar",
element: <SampleSidebar/>,
},
{
path: "/sample_sidebar_header",
element: <SampleSidebarHeader/>,
},
{
path: "/sample_modal",
element: <SampleModal/>,
},
{
path: "/tiles",
element: <TestFirestorePage/>,
},
// {
// path: "/user-tiles",
// element: <IndexPage/>,
// errorElement:<_404Page/>
// },
// {
// path: "/graphs",
// element: <GraphDashboard />,
// },
// {
// path: "/sample_sidebar",
// element: <SampleSidebar/>,
// },
// {
// path: "/sample_sidebar_header",
// element: <SampleSidebarHeader/>,
// },
// {
// path: "/sample_modal",
// element: <SampleModal/>,
// },
// {
// path: "/tiles",
// element: <TestFirestorePage/>,
// },
]);

0 comments on commit 994912e

Please sign in to comment.