Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Add molecule switch #7

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Add molecule switch #7

merged 1 commit into from
Aug 20, 2020

Conversation

tatinacher
Copy link
Member

@tatinacher tatinacher commented Aug 17, 2020

Implement switch atom

@github-actions github-actions bot added the @atoms Changes inside atoms label Aug 17, 2020
onChange(event: React.SyntheticEvent): void;
}

export const Checkbox: React.FC<CheckboxProps & { className: string }> = ({
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export const Checkbox: React.FC<CheckboxProps & { className: string }> = ({
const Checkbox: React.FC<CheckboxProps & { className: string }> = ({

Думаю, что пользователю не нужен доступ к базовому компоненту без стилей.

Иначе пользователь получит доступ к checkbox.Checkbox и может быть удивлен, почему это верстка расползлась

Copy link
Member

Choose a reason for hiding this comment

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

Удалишь export ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@sergeysova сорян, забыла удалить старый Checkbox, компонент лежит в molecules/toggle

src/ui/themes/index.ts Outdated Show resolved Hide resolved
@sergeysova sergeysova changed the title feat(ui): implement checkbox Add atom checkbox Aug 17, 2020
@sergeysova sergeysova marked this pull request as draft August 17, 2020 10:14
@tatinacher tatinacher changed the title Add atom checkbox Add atom switch Aug 18, 2020
@sergeysova sergeysova marked this pull request as ready for review August 18, 2020 14:20
@sergeysova sergeysova marked this pull request as draft August 18, 2020 14:20
@tatinacher tatinacher marked this pull request as ready for review August 19, 2020 14:38
@tatinacher tatinacher changed the title Add atom switch Add molecule switch Aug 19, 2020
@tatinacher tatinacher removed the @atoms Changes inside atoms label Aug 19, 2020
Copy link
Member

@sergeysova sergeysova left a comment

Choose a reason for hiding this comment

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

Думаю, лучше удалить export

@sergeysova sergeysova removed the request for review from n1zee August 19, 2020 17:03
@sergeysova sergeysova merged commit 35de6a4 into master Aug 20, 2020
@sergeysova sergeysova deleted the feat/RBL-262-checkbox branch August 20, 2020 12:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants