mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
3575d34507
* base logic to handle rendering a notification without redux * removed dispatches for new flash mesage triggers * query page wrapper is no longer needed * refactored confirm invite page to remove redux * refactored email token redirect to functional and typescript * refactored pack composer page to functional and typescript * clean up * lint fixes * tests no longer needed * fixed confirm sso invite test * test fix * fixed test * fixed tests * removed redux from flash on rebased pages
16 lines
378 B
TypeScript
16 lines
378 B
TypeScript
import PropTypes from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
alertType: PropTypes.string,
|
|
isVisible: PropTypes.bool,
|
|
message: PropTypes.string,
|
|
undoAction: PropTypes.func,
|
|
});
|
|
|
|
export interface INotification {
|
|
alertType: "success" | "error" | "warning-filled" | null;
|
|
isVisible: boolean;
|
|
message: JSX.Element | string | null;
|
|
undoAction?: () => void;
|
|
}
|