Skip to content

Commit

Permalink
chore(client): remove dead code (#569)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 authored Jan 9, 2025
1 parent f6ed919 commit c477035
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 569 deletions.
28 changes: 0 additions & 28 deletions client/src/components/Menu/cardano.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import {
faArrowUpRightFromSquare,
faBook,
faClockRotateLeft,
// faCubesStacked,
// faMessage,
// faProjectDiagram,
faWallet,
// faTableColumns,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Link, useLocation } from "react-router-dom";
Expand Down Expand Up @@ -64,30 +60,6 @@ export const menuItems: Record<string, MenuItem> = {
activeRoute: [PageRoute.historyCardano],
icon: faClockRotateLeft,
},
// projects: {
// text: "Projects",
// to: PageRoute.projectsCardano,
// activeRoute: [PageRoute.projectsCardano],
// icon: faProjectDiagram,
// },
// pools: {
// text: "Stake Pools",
// to: PageRoute.poolsCardano,
// activeRoute: [PageRoute.poolsCardano],
// icon: faCubesStacked,
// },
/// dashboard: {
/// text: "Dashboard",
/// to: PageRoute.dashboardCardano,
/// activeRoute: [PageRoute.dashboardCardano],
/// icon: faTableColumns,
/// },
// feedback: {
// text: "Feedback",
// to: PageRoute.feedback,
// activeRoute: [PageRoute.feedback],
// icon: faMessage,
// },
};

export default function MenuCardano() {
Expand Down
24 changes: 0 additions & 24 deletions client/src/components/Menu/ergo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,30 +47,6 @@ export const socialMediaItems: Record<string, SocialMediaItem> = {
};

export const menuItems: Record<string, MenuItem> = {
// claim: {
// text: "Claim",
// to: PageRoute.claimCardano,
// activeRoute: [PageRoute.claimCardano, PageRoute.depositCardano],
// icon: faWallet,
// },
// // history: {
// // text: "History",
// // to: PageRoute.history,
// // activeRoute: [PageRoute.history],
// // icon: faClockRotateLeft,
// // },
// projects: {
// text: "Projects",
// to: PageRoute.projectsCardano,
// activeRoute: [PageRoute.projectsCardano],
// icon: faProjectDiagram,
// },
// /*dashboard: {
// text: "Dashboard",
// to: PageRoute.dashboardCardano,
// activeRoute: [PageRoute.dashboardCardano],
// icon: faTableColumns,
// },*/
feedback: {
text: "Feedback",
to: PageRoute.feedback,
Expand Down
25 changes: 0 additions & 25 deletions client/src/components/Projects/Logo/index.tsx

This file was deleted.

45 changes: 0 additions & 45 deletions client/src/components/Projects/Project/index.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions client/src/components/Projects/URLs/index.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions client/src/entities/dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export interface GetQueueDto {
pending_tx: number;
}

export interface GetPoolsDto {
whitelistedPools: PoolInfo[];
regularPools: PoolInfo[];
}

export interface GetDeliveredRewardsDto {
deliveredRewards: DeliveredReward[];
}
Expand Down
40 changes: 0 additions & 40 deletions client/src/entities/project.entities.ts

This file was deleted.

33 changes: 0 additions & 33 deletions client/src/hooks/cardano/pools/usePools.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions client/src/hooks/cardano/projects/useProjects.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions client/src/layouts/RouterWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ import { PageRoute } from "src/entities/common.entities";
import Claim from "src/pages/Cardano/Claim";
import ClaimHistory from "src/pages/Cardano/ClaimHistory";
import DepositInfoPage from "src/pages/Cardano/Deposit";
// import Pools from "src/pages/Cardano/Pools";
// import Projects from "src/pages/Cardano/Projects";
import ComingSoonPage from "src/pages/ComingSoon";
// import Dashboard from "src/pages/Dashboard";
// import Feedback from "src/pages/Feedback";
import { RootState } from "src/store";

export default function RouterWrapper() {
Expand All @@ -20,10 +16,6 @@ export default function RouterWrapper() {
<Route path={PageRoute.claimCardano} element={<Claim />} />
<Route path={PageRoute.historyCardano} element={<ClaimHistory />} />
<Route path={PageRoute.depositCardano} element={<DepositInfoPage />} />
{/* Disabled routes <Route path={PageRoute.projectsCardano} element={<Projects />} />
<Route path={PageRoute.dashboardCardano} element={<Dashboard />} />
<Route path={PageRoute.poolsCardano} element={<Pools />} />
<Route path={PageRoute.feedback} element={<Feedback />} /> */}

{ergoEnabled ? (
<Route path={PageRoute.claimErgo} element={<ComingSoonPage />} />
Expand Down
30 changes: 0 additions & 30 deletions client/src/pages/Cardano/Pools/index.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions client/src/pages/Cardano/Projects/index.tsx

This file was deleted.

Loading

0 comments on commit c477035

Please sign in to comment.