Refactor ButtonGroup stories to reduce code repetition by unifying shared options #2538
VeerChaurasia
started this conversation in
Ideas
Replies: 1 comment
-
Thanks for suggesting this @VeerChaurasia! E.g if we store ll the button options as a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the file of:
packages/core/src/components/ButtonGroup/__stories__/ButtonGroup.stories.tsx
ButtonGroup stories currently repeat the same set of button options (Alpha, Beta, Gamma, Delta) across multiple stories. To improve maintainability and reduce redundancy, we should refactor the code to use a shared variable for these options.
Beta Was this translation helpful? Give feedback.
All reactions