-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
chore(Alert): Convert Alert class to functional component #12777
chore(Alert): Convert Alert class to functional component #12777
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: aedb9d2f99c0ae1b195961c93afbead285c55641 (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Potential regressions comparing to master
Perf comparison
Perf tests with no regressions
|
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.
Just a couple of comments
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
Co-Authored-By: Roman Sudarikov <pompomon@users.noreply.github.com>
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Alert/Alert.tsx
Outdated
Show resolved
Hide resolved
…12777) * chore(Alert): Convert to functional component * chore(Alert): remove import * chore(Alert): remove dup variable * chore(Alert): useAutoControlled * chore(Alert): self controlled props * chore(Alert): DismissAction as static prop * chore(Alert): Remove children interface * chore(Alert): Remove alert state * chore(Alert): Remove unsed import * chore(Alert): review changes * Update packages/fluentui/react-northstar/src/components/Alert/Alert.tsx Co-Authored-By: Oleksandr Fediashov <alexander.mcgarret@gmail.com> * chore(Alert): remove destruction from selfcontrolled prop * chore(Alert): remove actionable * chore(Alert): add Required<> * chore(Alert): add AlertBehaviorProps * chore(Alert): Change AlertBehaviorProps import * chore(Alert): Change AlertBehaviorProps export * chore(Alert): import useBooleanKnob * chore(Alert): AlertStylesProps * chore(Alert): AlertDismissActionStyles * chore(Alert): Changelog * Update packages/fluentui/react-northstar/src/components/Alert/Alert.tsx Co-Authored-By: Roman Sudarikov <pompomon@users.noreply.github.com> * chore(Alert): getA11yprops * chore(Alert): remove deprecated_className Co-authored-by: Charles Assuncao <chassunc@microsoft.com> Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com> Co-authored-by: Roman Sudarikov <pompomon@users.noreply.github.com>
Pull request checklist
$ yarn change
Description of changes
This PR converts
Alert
component to be functional. Restricting props set that will be passed to styles functions.Related to #12237
Prop sets
Alert
warning
danger
info
success
attached
fitted
dismissible
visible
Microsoft Reviewers: Open in CodeFlow