Skip to content

Commit 4bc3dce

Browse files
author
Ives van Hoorne
committed
Lower notification alive time
1 parent cceb207 commit 4bc3dce

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/app/containers/Notifications.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import styled, { injectGlobal } from 'styled-components';
55
import { connect } from 'react-redux';
66
import { spring, Motion } from 'react-motion';
77
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
8-
9-
import type { Notification } from '../store/notifications/reducer';
8+
import type { Notification } from 'common/types';
109
import notificationActionCreators from '../store/notifications/actions';
1110
import NotificationComponent from '../components/Notification';
1211
import Portal from '../components/Portal';

src/app/store/notifications/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
title: string,
1212
notificationType: 'notice' | 'warning' | 'error' | 'success' = 'notice',
1313
buttons: Array<NotificationButton> = [],
14-
timeAlive: number = 5,
14+
timeAlive: number = 2,
1515
) => ({
1616
id: (lastId += 1),
1717
type: ADD_NOTIFICATION,

0 commit comments

Comments
 (0)