Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Hide opp page behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Sep 13, 2024
1 parent 4e22d2e commit 1213036
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/app/[locale]/opportunity/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import OpportunityLink from "src/components/opportunity/OpportunityLink";
import OpportunityListingAPI from "../../../api/OpportunityListingAPI";
import OpportunityStatusWidget from "src/components/opportunity/OpportunityStatusWidget";
import { getTranslations } from "next-intl/server";
import withFeatureFlag from "src/hoc/search/withFeatureFlag";

export async function generateMetadata() {
const t = await getTranslations({ locale: "en" });
Expand All @@ -27,7 +28,7 @@ export async function generateMetadata() {
return meta;
}

export default async function OpportunityListing({
async function OpportunityListing({
params,
}: {
params: { id: string };
Expand Down Expand Up @@ -81,3 +82,5 @@ export default async function OpportunityListing({
</div>
);
}

export default withFeatureFlag(OpportunityListing, "showSearchV0");

0 comments on commit 1213036

Please sign in to comment.