Skip to content

Commit

Permalink
Longer global notification duration (4.5s -> 8s)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaVR committed Dec 18, 2018
1 parent 1b74347 commit e6d6633
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LocaleProvider } from "antd";
import { LocaleProvider, notification } from "antd";
import nlBE from "antd/lib/locale-provider/nl_BE";
import es6promise from "es6-promise";
import moment from "moment";
import moment, { ISO_8601 } from "moment";
import "moment/locale/nl-be";
import React from "react";
import ReactDOM from "react-dom";
Expand All @@ -25,6 +25,11 @@ const enabledLocale = nlBE;
moment.locale("nl-be");
I18nextInitializer.initialize("nl");

// Ant design global notification config
notification.config({
duration: 8,
});

ReactDOM.render(
<LocaleProvider locale={enabledLocale}>
<Provider store={store}>
Expand Down

0 comments on commit e6d6633

Please sign in to comment.