Skip to content

Commit

Permalink
restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Jan 28, 2025
1 parent 7af0fb7 commit 2e0b97f
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions apps/admin/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MainLayout } from "@/layouts/MainLayout";
import App from "./App";
import { CreateProgram } from "./pages/CreateProgram";
import { CreateRound } from "./pages/CreateRound";
import { Pool } from "./pages/Pool";
import { ManagePool } from "./pages/ManagePool";
import "./index.css";

// TODO: Add route protection when the user is not connected
Expand All @@ -18,7 +18,7 @@ createRoot(document.getElementById("root")!).render(
<Route path="/" element={<App />} />
<Route path="/create-program" element={<CreateProgram />} />
<Route path="/create-round" element={<CreateRound />} />
<Route path="/pool" element={<Pool />} />
<Route path="/:chainId/:poolId/manage" element={<ManagePool />} />
</Route>
</Routes>
</BrowserRouter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import { PoolSummary } from "gitcoin-ui/pool";
import { PoolType } from "gitcoin-ui/types";
import { PoolTabs } from "./PoolTabs";
import { PoolTabs } from "./tabs";

export const Pool = () => {
export const ManagePool = () => {
// Add mock data for testing
const chainId = 1; // Ethereum mainnet
const poolId = "pool-123";
Expand Down
1 change: 1 addition & 0 deletions apps/admin/src/pages/ManagePool/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./ManagePool";
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import { usePerformEvaluation } from "@/hooks/checker/usePerformEvaluation";
import { usePerformOnChainReview } from "@/hooks/checker/usePerformOnChainReview";

export const TabApplication = () => {
// const { poolId, chainId } = useParams();

const { poolId, chainId } = { poolId: "635", chainId: "11155111" };
const { poolId, chainId } = useParams();

const { address } = useAccount();
const { data: walletClient } = useWalletClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export const TabRoundDate = () => {
roundDates: {
applications: {
start: "2025-01-01",
end: "2025-01-01",
end: "2025-02-01",
},
round: {
start: "2025-01-01",
end: "2025-01-01",
end: "2025-02-01",
},
},
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { VerticalTabs, Icon } from "gitcoin-ui";
import { TabApplication, TabDistribute, TabRoundDate, TabVoter, TabRoundDetail } from "./tabs";
import { TabApplication } from "./TabApplication";
import { TabDistribute } from "./TabDistribute";
import { TabRoundDate } from "./TabRoundDate";
import { TabRoundDetail } from "./TabRoundDetail";
import { TabVoter } from "./TabVoter";

export const PoolTabs = () => {
return (
Expand Down
1 change: 0 additions & 1 deletion apps/admin/src/pages/Pool/index.ts

This file was deleted.

5 changes: 0 additions & 5 deletions apps/admin/src/pages/Pool/tabs/index.ts

This file was deleted.

0 comments on commit 2e0b97f

Please sign in to comment.