Skip to content

Commit 8a19763

Browse files
committed
show only checker
1 parent 1d9c4ae commit 8a19763

File tree

4 files changed

+2
-286
lines changed

4 files changed

+2
-286
lines changed

packages/builder/src/components/grants/ApplicationCard.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { useEffect } from "react";
1010
import { useDispatch, useSelector } from "react-redux";
1111
import { Link } from "react-router-dom";
1212
import { loadRound } from "../../actions/rounds";
13-
import { roundApplicationViewPath } from "../../routes";
1413
import { ApplicationCardType, RoundSupport } from "../../types";
1514
import {
1615
formatDate,
@@ -196,17 +195,8 @@ export default function ApplicationCard({
196195
return null;
197196
}
198197

199-
const applicationStartTime = new Date(props.round.applicationsStartTime);
200-
const showCheckerLink =
201-
applicationStartTime >= new Date("2024-12-01T00:00:00Z");
202-
203-
const applicationViewLink = showCheckerLink
204-
? `https://beta.checker.gitcoin.co/view/application/${applicationData.chainId}/${applicationData.roundID}/${applicationData.application.id}`
205-
: roundApplicationViewPath(
206-
applicationData.chainId.toString(),
207-
applicationData.roundID,
208-
applicationData.application.metadataCid || ""
209-
);
198+
const applicationViewLink = `https://beta.checker.gitcoin.co/view/application/
199+
${applicationData.chainId}/${applicationData.roundID}/${applicationData.application.id}`;
210200

211201
return (
212202
<Box

packages/builder/src/components/rounds/ViewApplication.tsx

Lines changed: 0 additions & 262 deletions
This file was deleted.

packages/builder/src/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import NewProject from "./components/grants/New";
2323
import Project from "./components/grants/Show";
2424
import RoundApply from "./components/rounds/Apply";
2525
import RoundShow from "./components/rounds/Show";
26-
import ViewApplication from "./components/rounds/ViewApplication";
2726
import history from "./history";
2827
import reportWebVitals from "./reportWebVitals";
2928
import { slugs } from "./routes";
@@ -138,10 +137,6 @@ root.render(
138137
path={slugs.roundApplication}
139138
element={<RoundApply />}
140139
/>
141-
<Route
142-
path={slugs.roundApplicationView}
143-
element={<ViewApplication />}
144-
/>
145140
<Route path="*" element={<PageNotFound />} />
146141
</Routes>
147142
</Layout>

packages/builder/src/routes.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export const slugs = {
66
newGrant: `/projects/new`,
77
round: `/chains/:chainId/rounds/:roundId`,
88
roundApplication: `/chains/:chainId/rounds/:roundId/apply`,
9-
roundApplicationView: `/chains/:chainId/rounds/:roundId/view/:ipfsHash`,
109
};
1110

1211
export const rootPath = () => slugs.root;
@@ -39,9 +38,3 @@ export const roundApplicationPathForProject = (
3938
roundId: string,
4039
projectId: string
4140
) => `/round/${chainId}/${roundId}/${projectId}`;
42-
43-
export const roundApplicationViewPath = (
44-
chainId: string,
45-
roundId: string,
46-
ipfsHash: string
47-
) => `/chains/${chainId}/rounds/${roundId}/view/${ipfsHash}`;

0 commit comments

Comments
 (0)