Skip to content

Commit

Permalink
RYSK-497: Add rewards page to navigation and header.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeanBoyCousin committed Nov 3, 2023
1 parent f89b23d commit 154e1ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/front-end/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Route, Routes, Navigate } from "react-router-dom";
import { Navigate, Route, Routes } from "react-router-dom";
import { ToastContainer } from "react-toastify";

import ApolloProvider from "./clients/Apollo/Apollo";
Expand All @@ -8,14 +8,15 @@ import { Header } from "./components/Header";
import { Init } from "./components/Init";
import { MobileWarning } from "./components/MobileWarning";
import { AppPaths } from "./config/appPaths";
import { useScrollToTop } from "./hooks/useScrollToTop";
import { Dashboard } from "./pages/Dashboard";
import { OTC } from "./pages/OTC";
import { OptionsTrading } from "./pages/OptionsTrading";
import { PrivacyPolicy } from "./pages/PrivacyPolicy";
import { Rewards } from "./pages/Rewards";
import { TermsOfService } from "./pages/TermsOfService";
import { Vault } from "./pages/Vault";
import { GlobalContextProvider } from "./state/GlobalContext";
import { useScrollToTop } from "./hooks/useScrollToTop";

import "react-toastify/dist/ReactToastify.css";
import "./App.css";
Expand All @@ -41,6 +42,7 @@ function App() {
path={AppPaths.PRIVACY_POLICY}
element={<PrivacyPolicy />}
/>
<Route path={AppPaths.REWARDS} element={<Rewards />} />
<Route
path={AppPaths.TERMS_OF_SERVICE}
element={<TermsOfService />}
Expand Down
1 change: 1 addition & 0 deletions packages/front-end/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const links = [
{ id: "header-options", path: AppPaths.TRADE, label: "Trade Options" },
{ id: "header-vault", path: AppPaths.VAULT, label: "Vault" },
{ id: "header-dashboard", path: AppPaths.DASHBOARD, label: "Dashboard" },
{ id: "header-rewards", path: AppPaths.REWARDS, label: "Rewards" },
];

export const Header = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/front-end/src/config/appPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export enum AppPaths {
HOME = "/",
OTC = "/otc",
PRIVACY_POLICY = "/privacy-policy",
REWARDS = "/rewards",
TERMS_OF_SERVICE = "/terms-of-service",
TRADE = "/options",
VAULT = "/vault",
Expand Down

0 comments on commit 154e1ad

Please sign in to comment.