Skip to content

Commit 12474d1

Browse files
authored
Merge branch 'develop' into personal_sign_origin
2 parents 818ccc1 + 727ccfe commit 12474d1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ui/store/actions.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,6 +2660,16 @@ export function hideLoadingIndication(): Action {
26602660
};
26612661
}
26622662

2663+
/**
2664+
* An action creator for display a warning to the user in various places in the
2665+
* UI. It will not be cleared until a new warning replaces it or `hideWarning`
2666+
* is called.
2667+
*
2668+
* @deprecated This way of displaying a warning is confusing for users and
2669+
* should no longer be used.
2670+
* @param payload - The warning to show.
2671+
* @returns The action to display the warning.
2672+
*/
26632673
export function displayWarning(payload: unknown): PayloadAction<string> {
26642674
if (isErrorWithMessage(payload)) {
26652675
return {

0 commit comments

Comments
 (0)