diff --git a/src/components/Notification.tsx b/src/components/Notification.tsx index 8775285c..7f87cb3f 100644 --- a/src/components/Notification.tsx +++ b/src/components/Notification.tsx @@ -2,8 +2,7 @@ // Copyright (c) 2020 The Pybricks Authors import { IconName, Intent, Toast } from '@blueprintjs/core'; -import { WithI18nProps, withI18n } from '@shopify/react-i18n'; -import { PrimitiveReplacementDictionary } from '@shopify/react-i18n/dist/src/types'; +import { Replacements, WithI18nProps, withI18n } from '@shopify/react-i18n'; import React from 'react'; import { connect } from 'react-redux'; import { Action, Dispatch } from '../actions'; @@ -22,7 +21,7 @@ interface OwnProps { level: NotificationLevel; message?: string; messageId?: MessageId; - replacements?: PrimitiveReplacementDictionary; + replacements?: Replacements; helpUrl?: string; action?: MessageAction; } diff --git a/src/reducers/notification.ts b/src/reducers/notification.ts index d956a4e5..a2cd255e 100644 --- a/src/reducers/notification.ts +++ b/src/reducers/notification.ts @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT // Copyright (c) 2020 The Pybricks Authors -import { PrimitiveReplacementDictionary } from '@shopify/react-i18n/dist/src/types'; +import { Replacements } from '@shopify/react-i18n'; import { Reducer } from 'react'; import { combineReducers } from 'redux'; import { Action } from '../actions'; @@ -45,7 +45,7 @@ export interface Notification { readonly level: Level; readonly message?: string; readonly messageId?: MessageId; - readonly replacements?: PrimitiveReplacementDictionary; + readonly replacements?: Replacements; readonly helpUrl?: string; readonly action?: MessageAction; } @@ -58,7 +58,7 @@ function append( state: NotificationList, level: Level, messageId: MessageId, - replacements?: PrimitiveReplacementDictionary, + replacements?: Replacements, helpUrl?: string, action?: MessageAction, ): NotificationList {