-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#124] [#125] [#127] Created/Updated centralised Storybook helpers. #139
Conversation
components/00-base/base.stories.js
Outdated
|
||
export const capitalizeFirstLetter = (string) => string.charAt(0).toUpperCase() + string.slice(1); | ||
|
||
export const indexedString = 'PlaceholderText'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure of this function.
Is this referencing to https://www.w3schools.com/jsref/jsref_indexof.asp. ??
components/00-base/base.stories.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NoMetaError: CSF: missing default export (line 1, col 0)
Can eb reolved with
export default {
title: 'Base',
};
but since this is not a story we cannot add export default.
@@ -36,7 +36,7 @@ export const Label = (knobTab) => { | |||
), | |||
content: text('Content', 'Label content', generalKnobTab), | |||
for: text('For', '', generalKnobTab), | |||
is_required: boolean('Required', false, generalKnobTab), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert. All boolean props are prefixed with is_
on purpose
@joshua-salsadigital |
Closes
Checklist before requesting a review
as
[#123] Verb in past tense with a period at the end.
Changed
section about WHY something wasdone if this was a bespoke implementation.
and they have passed.
Changed
Screenshots