Skip to content

Commit

Permalink
feat(interface): adds feature flag env and code
Browse files Browse the repository at this point in the history
  • Loading branch information
aminah-io authored Mar 31, 2023
2 parents 9f71628 + e4080c8 commit 47a2676
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/.env-example.env
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ NEXT_PUBLIC_DATADOG_ENV=someenvname
NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID=my_gtm_id

NEXT_ETHERSCAN_API_KEY=ASAADASDA

#feature flags
NEXT_PUBLIC_FF_MULTI_EVM_SIGNER=on
NEXT_PUBLIC_FF_COINBASE_STAMP=on

NEXT_PUBLIC_CERAMIC_CACHE_ENDPOINT=http://localhost:8002/
3 changes: 3 additions & 0 deletions app/components/PlatformCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export const PlatformCard = ({
const hidePlatform = stampFilters && !Object.keys(stampFilters).includes(platform.platform);
if (hidePlatform) return <></>;

// Hides Coinbase stamp if feature flag is off
if (process.env.NEXT_PUBLIC_FF_COINBASE_STAMP === "off" && platform.platform === "Coinbase") return <></>;

// returns a single Platform card
return (
<div className="w-1/2 p-2 md:w-1/2 xl:w-1/4" key={`${platform.name}${i}`}>
Expand Down

0 comments on commit 47a2676

Please sign in to comment.