Skip to content

Commit

Permalink
chore(feature-flag): remove KEGS flag (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn authored Apr 7, 2024
1 parent e9d1931 commit 9cf2a45
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
2 changes: 0 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ BROWSER=none
REACT_APP_API_ROOT=https://farmhand.vercel.app/
REACT_APP_NAME=$npm_package_name
REACT_APP_VERSION=$npm_package_version

REACT_APP_ENABLE_KEGS=true
1 change: 0 additions & 1 deletion .env.development.local
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
REACT_APP_API_ROOT=http://localhost:3001/
REACT_APP_ENABLE_KEGS=true
REACT_APP_ENABLE_FOREST=true

# Silence warnings from dev server
Expand Down
30 changes: 14 additions & 16 deletions src/components/Shop/Shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,20 @@ export const Shop = ({
}}
/>
</li>
{features.KEGS ? (
<li>
<TierPurchase
{...{
onBuyClick: handleCellarPurchase,
maxedOutPlaceholder:
"You've purchased the largest cellar available!",
purchasedTier: purchasedCellar,
renderTierLabel: ({ space, price }) =>
`${dollarString(price)}: Space for ${space} kegs`,
tiers: PURCHASEABLE_CELLARS,
title: 'Buy cellar',
}}
/>
</li>
) : null}
<li>
<TierPurchase
{...{
onBuyClick: handleCellarPurchase,
maxedOutPlaceholder:
"You've purchased the largest cellar available!",
purchasedTier: purchasedCellar,
renderTierLabel: ({ space, price }) =>
`${dollarString(price)}: Space for ${space} kegs`,
tiers: PURCHASEABLE_CELLARS,
title: 'Buy cellar',
}}
/>
</li>
{features.FOREST && isForestUnlocked ? (
<li>
<TierPurchase
Expand Down
5 changes: 1 addition & 4 deletions src/data/recipes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
import { itemType, fieldMode, recipeType } from '../enums'
import { RECIPE_INGREDIENT_VALUE_MULTIPLIER } from '../constants'
import { features } from '../config'

import * as items from './items'
import baseItemsMap from './items-map'
Expand Down Expand Up @@ -40,9 +39,7 @@ export const salt = itemify({
[items.saltRock.id]: 1,
},
condition: state => state.itemsSold[items.saltRock.id] >= 30,
description: features.KEGS
? 'Useful for seasoning food and fermentation.'
: 'Useful for seasoning food.',
description: 'Useful for seasoning food and fermentation.',
recipeType: recipeType.KITCHEN,
})

Expand Down

0 comments on commit 9cf2a45

Please sign in to comment.