fix use of private type in i18n

This commit is contained in:
David Lechner
2021-01-08 17:27:47 -06:00
parent c146979429
commit 7fc5142924
2 changed files with 5 additions and 6 deletions
+2 -3
View File
@@ -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;
}
+3 -3
View File
@@ -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 {