www.fgks.org   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor button story to use string literals #5639

Merged
merged 2 commits into from
Sep 14, 2021

Conversation

jimman2003
Copy link
Contributor
@jimman2003 jimman2003 commented Sep 9, 2021

refactor

Technical

uses string literals , as a crude way to recreate in plain html https://storybook.js.org/docs/vue/get-started/setup

Testing

Screenshot

Stakeholders

@mekarpeles @jdlrobson

stories/Button.stories.js Outdated Show resolved Hide resolved
Copy link
Collaborator
@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll also have to change the way that the buttons are instantiated. For example:
export const CtaBtn = () => ButtonTemplate('default', 'Leave waitlist');
// Other changes omitted for brevity...
export const CtaBtnWithBadge = () => ButtonTemplate('unavailable', 'Join waiting list', 4);

@jimman2003 jimman2003 force-pushed the template_stories branch 2 times, most recently from 14be11c to 51facfb Compare September 14, 2021 18:53
Co-authored-by: jimchamp <jameschamp@acm.org>
Copy link
Collaborator
@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! This should make it easier to add controls later. Thanks for working on this!

@jimchamp jimchamp merged commit 2514064 into internetarchive:master Sep 14, 2021
@jimman2003 jimman2003 deleted the template_stories branch September 14, 2021 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants