Modify the storybook so it works in IE11

This commit is contained in:
Eric Schultz 2020-10-08 19:00:01 -05:00 committed by Eric Schultz
parent 807143fe65
commit eeb247a5b7

View file

@ -7,7 +7,8 @@ const messages = {
setIntlConfig({ setIntlConfig({
locales: ['en', 'de'], locales: ['en', 'de'],
defaultLocale: 'en', defaultLocale: 'en',
getMessages: (locale) => messages[locale] // we use this form becuase it allows the story to be viewed in IE11
getMessages: function(locale) { return messages[locale]}
}); });
addDecorator(withIntl) addDecorator(withIntl)