Skip to content

Commit 1812038

Browse files
committed
change flag names
1 parent bbf7dac commit 1812038

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/shirt-shop/flags.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function bucket(key: string, buckets: number = 2) {
2020
}
2121

2222
export const showSummerBannerFlag = flag<boolean, EvaluationContext>({
23-
key: 'summer_sale',
23+
key: 'summer-sale',
2424
description: 'Shows a bright yellow banner for a 20% discount',
2525
defaultValue: false,
2626
identify,
@@ -31,7 +31,7 @@ export const showSummerBannerFlag = flag<boolean, EvaluationContext>({
3131
});
3232

3333
export const showFreeDeliveryBannerFlag = flag<boolean, EvaluationContext>({
34-
key: 'free_delivery',
34+
key: 'free-delivery',
3535
description: 'Show a black free delivery banner at the top of the page',
3636
defaultValue: false,
3737
identify,
@@ -42,7 +42,8 @@ export const showFreeDeliveryBannerFlag = flag<boolean, EvaluationContext>({
4242
});
4343

4444
export const proceedToCheckoutColorFlag = flag<string, EvaluationContext>({
45-
key: 'proceed_to_checkout_color',
45+
key: 'proceed-to-checkout-color',
46+
description: 'The color of the proceed to checkout button',
4647
defaultValue: 'blue',
4748
options: ['blue', 'green', 'red'],
4849
identify,

0 commit comments

Comments
 (0)