mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
504 B
TypeScript
21 lines
504 B
TypeScript
import * as React from 'react';
|
|
import Notification, { notify } from 'react-notify-toast';
|
|
|
|
export class NotificationTest extends React.Component {
|
|
render() {
|
|
return(<Notification options={{zIndex: 200, top: '15px'}} />);
|
|
}
|
|
}
|
|
|
|
function testNotify() {
|
|
notify.show('show something');
|
|
notify.show('show error', 'error');
|
|
notify.show('show warning', 'warning', 100);
|
|
|
|
const queue = notify.createShowQueue();
|
|
queue.show('hi');
|
|
queue.show('test');
|
|
|
|
notify.hide();
|
|
}
|