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

Migrate button to tsx #291

Merged
merged 9 commits into from
Sep 26, 2023
Merged

Migrate button to tsx #291

merged 9 commits into from
Sep 26, 2023

Conversation

mollpo
Copy link
Contributor

@mollpo mollpo commented Sep 20, 2023

No description provided.

@github-actions
Copy link

Preview link: https://291.react-ui.aboutbits.dev

src/components/button/ButtonIcon.stories.tsx Outdated Show resolved Hide resolved
Comment on lines 87 to 90
/**
* The `Mode` determines if the component is placed on LIGHT or DARK background.
*/

Copy link
Contributor

Choose a reason for hiding this comment

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

Apart from there being a sporadic newline, this jsdoc comment seems worthless to me

Comment on lines 120 to 123
/**
* The size determine the padding between the button text and its border.
*/

Copy link
Contributor

Choose a reason for hiding this comment

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

Same here. I would remove this jsdoc

src/components/button/ButtonIcon.stories.tsx Outdated Show resolved Hide resolved
src/components/button/ButtonIcon.stories.tsx Outdated Show resolved Hide resolved
src/components/button/ButtonIconLink.stories.tsx Outdated Show resolved Hide resolved
src/components/button/ButtonLink.stories.tsx Outdated Show resolved Hide resolved
Comment on lines 36 to 41
The **_default values_** for variant, size, and tone can be found in
the [Button Section](/docs/components-button-button--docs). The
submit button uses `React Hook Form` to automatically disable during
submitting. When the submit button is not placed inside a form (i.e.
it has no form context), you can use the `formControl` prop to pass
the control of the form.
Copy link
Contributor

Choose a reason for hiding this comment

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

The information about default values seems unnecessary. The rest is good, but I would put it as a jsdoc of the component SubmitButton

@mollpo mollpo requested a review from devgioele September 25, 2023 09:57
@alexlanz alexlanz merged commit 03f072f into main Sep 26, 2023
4 checks passed
@alexlanz alexlanz deleted the migrate-button-to-tsx branch September 26, 2023 13:52
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.

3 participants