๐
This file contains hidden or 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
/** | |
* This way, configuring a Higher-Order Component is essentially just the addition of another wrapping function around it. | |
* We accept custom messages for loading, no data or empty from the Wrapped Component | |
* OR, we provide default/generic fallback states if wrapped component doesn't provide them. | |
* @param {*} dataEmptyFeedback | |
* @param {*} noDataFeedback | |
* @param {*} dataEmptyFeedback | |
* @returns | |
*/ | |
const withConditionalFeedback = |
This file contains hidden or 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
.alert { | |
position: relative; | |
top: 10px; | |
left: 50%; | |
translate: -50%; | |
background-color: aquamarine; | |
color: black; | |
border-radius: 5px; | |
padding: 10px; | |
cursor: pointer; |
OlderNewer