We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 818ccc1 + 727ccfe commit 12474d1Copy full SHA for 12474d1
ui/store/actions.ts
@@ -2660,6 +2660,16 @@ export function hideLoadingIndication(): Action {
2660
};
2661
}
2662
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
+ */
2673
export function displayWarning(payload: unknown): PayloadAction<string> {
2674
if (isErrorWithMessage(payload)) {
2675
return {
0 commit comments