mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
fix use of private type in i18n
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user