-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove eventEmitter for notifications, use react-toastify Trying to style with PF alert, which will apply CSS from the theme selection. The alert is still getting wrapped in a container that I haven't been able to style appropriately or remove. beforeUpload toast is working, but I had issues with the others and I'm adding them in one by one
- Loading branch information
Showing
7 changed files
with
109 additions
and
98 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Alert } from '@patternfly/react-core' | ||
import PropTypes from 'prop-types'; | ||
|
||
|
||
const ToastWrapper = ({data}) => ( | ||
<Alert key={data.key} variant={data.type} title={data.title} actionLinks={data.action} isLiveRegion> | ||
{data.message} | ||
</Alert> | ||
); | ||
|
||
ToastWrapper.propTypes = { | ||
data: PropTypes.object, | ||
} | ||
|
||
export default ToastWrapper; |
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
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
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