Created
November 5, 2019 17:36
-
-
Save ahamedali95/ff58e538265a41fa43641ebaa826e05e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CommonAlert = props => { | |
return (<Alert kind={props.kind} show={props.isAlertShown}>{props.message}</Alert> ); | |
} | |
const SomePageUsingCommonAlert = () => { | |
return ( | |
<div> | |
<CommonAlert kind={} isAlertShown={} message={} /> | |
</div> | |
); | |
} | |
const SomePageNotUsingCommonAlert = () => { | |
return ( | |
<div> | |
<Alert kind='very-serious' show={!!null}>very-very-very-serious-immediate-action-required</Alert> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment