Skip to content

Commit

Permalink
show only checker
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Jan 15, 2025
1 parent 88b343e commit ae66851
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 286 deletions.
14 changes: 2 additions & 12 deletions packages/builder/src/components/grants/ApplicationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { Link } from "react-router-dom";
import { loadRound } from "../../actions/rounds";
import { roundApplicationViewPath } from "../../routes";
import { ApplicationCardType, RoundSupport } from "../../types";
import {
formatDate,
Expand Down Expand Up @@ -196,17 +195,8 @@ export default function ApplicationCard({
return null;
}

const applicationStartTime = new Date(props.round.applicationsStartTime);
const showCheckerLink =
applicationStartTime >= new Date("2024-12-01T00:00:00Z");

const applicationViewLink = showCheckerLink
? `https://beta.checker.gitcoin.co/view/application/${applicationData.chainId}/${applicationData.roundID}/${applicationData.application.id}`
: roundApplicationViewPath(
applicationData.chainId.toString(),
applicationData.roundID,
applicationData.application.metadataCid || ""
);
const applicationViewLink = `https://beta.checker.gitcoin.co/view/application/
${applicationData.chainId}/${applicationData.roundID}/${applicationData.application.id}`;

return (
<Box
Expand Down
262 changes: 0 additions & 262 deletions packages/builder/src/components/rounds/ViewApplication.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions packages/builder/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import NewProject from "./components/grants/New";
import Project from "./components/grants/Show";
import RoundApply from "./components/rounds/Apply";
import RoundShow from "./components/rounds/Show";
import ViewApplication from "./components/rounds/ViewApplication";
import history from "./history";
import reportWebVitals from "./reportWebVitals";
import { slugs } from "./routes";
Expand Down Expand Up @@ -138,10 +137,6 @@ root.render(
path={slugs.roundApplication}
element={<RoundApply />}
/>
<Route
path={slugs.roundApplicationView}
element={<ViewApplication />}
/>
<Route path="*" element={<PageNotFound />} />
</Routes>
</Layout>
Expand Down
7 changes: 0 additions & 7 deletions packages/builder/src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const slugs = {
newGrant: `/projects/new`,
round: `/chains/:chainId/rounds/:roundId`,
roundApplication: `/chains/:chainId/rounds/:roundId/apply`,
roundApplicationView: `/chains/:chainId/rounds/:roundId/view/:ipfsHash`,
};

export const rootPath = () => slugs.root;
Expand Down Expand Up @@ -39,9 +38,3 @@ export const roundApplicationPathForProject = (
roundId: string,
projectId: string
) => `/round/${chainId}/${roundId}/${projectId}`;

export const roundApplicationViewPath = (
chainId: string,
roundId: string,
ipfsHash: string
) => `/chains/${chainId}/rounds/${roundId}/view/${ipfsHash}`;

0 comments on commit ae66851

Please sign in to comment.