Skip to content

Instantly share code, notes, and snippets.

@vadimkorr
Last active July 30, 2019 10:19
Show Gist options
  • Save vadimkorr/346a1a0fc7717851d223f7331d5ea17b to your computer and use it in GitHub Desktop.
Save vadimkorr/346a1a0fc7717851d223f7331d5ea17b to your computer and use it in GitHub Desktop.
Implementation with NotificationBase component
import React from "react";
import { NotificationBase } from "./NotificationBase";
import PropTypes from "prop-types";
export const SuccessNotification = props => (
<NotificationBase
{...props}
colorPrimary="#dff0d8"
colorAccent="#3c763d"
iconName="check-circle"
/>
);
SuccessNotification.propTypes = {
title: PropTypes.string.isRequired,
message: PropTypes.string.isRequired,
onClosePress: PropTypes.func
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment