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

feat(component): add Alerts, InlineAlerts, and Message components #340

Merged
merged 8 commits into from
Feb 19, 2020

Conversation

chanceaclark
Copy link
Contributor

@chanceaclark chanceaclark commented Feb 17, 2020

What

Add Alerts, InlineAlerts, and Messages.

Screenshots

alerts
inline-alerts
messages

@chanceaclark chanceaclark requested a review from a team February 17, 2020 16:14
packages/docs/components/MethodList/MethodList.tsx Outdated Show resolved Hide resolved
packages/big-design/src/components/Alert/Alert.tsx Outdated Show resolved Hide resolved
packages/big-design/src/components/Alert/styled.ts Outdated Show resolved Hide resolved
packages/big-design/src/components/Alert/styled.ts Outdated Show resolved Hide resolved
packages/big-design/src/managers/alerts/manager.ts Outdated Show resolved Hide resolved
packages/big-design/src/utils/messagingHelpers.tsx Outdated Show resolved Hide resolved
packages/docs/pages/Alert/AlertPage.tsx Outdated Show resolved Hide resolved
packages/big-design/src/managers/alerts/AlertsManager.tsx Outdated Show resolved Hide resolved
@jorgemoya
Copy link
Contributor

Can you add some screenshots of the PR?

Copy link
Contributor

@jorgemoya jorgemoya left a comment

Choose a reason for hiding this comment

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

Looking good.

packages/big-design/src/managers/alerts/manager.ts Outdated Show resolved Hide resolved
packages/docs/MethodLists/AlertsManagerMethodLists.tsx Outdated Show resolved Hide resolved
packages/docs/PropTables/shared.tsx Outdated Show resolved Hide resolved
packages/docs/pages/Message/MessagePage.tsx Outdated Show resolved Hide resolved
@chanceaclark chanceaclark changed the title WIP: feat(component): add Alerts, InlineAlerts, and Message components feat(component): add Alerts, InlineAlerts, and Message components Feb 18, 2020
@chanceaclark chanceaclark requested review from golcinho and a team February 18, 2020 22:49

useEffect(() => manager.subscribe(setAlert), [manager]);

return <>{alert && <Alert {...alert} />}</>;
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
return <>{alert && <Alert {...alert} />}</>;
return alert ? <Alert {...alert} /> : null;

@chanceaclark chanceaclark force-pushed the feat/alerts branch 2 times, most recently from 807697c to 64654ab Compare February 19, 2020 18:37
Copy link
Member

@rtalvarez rtalvarez left a comment

Choose a reason for hiding this comment

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

lgtm!

packages/big-design/src/managers/alerts/manager.ts Outdated Show resolved Hide resolved
@chanceaclark chanceaclark merged commit d541276 into bigcommerce:master Feb 19, 2020
@chanceaclark chanceaclark deleted the feat/alerts branch February 19, 2020 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants