Inline
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import { t } from "i18next";
|
||||
import type { DialogBoxAttributesV2 } from "./DialogBoxV2";
|
||||
|
||||
/**
|
||||
* {@link DialogBoxAttributesV2} for showing a generic error.
|
||||
*/
|
||||
export const genericErrorAttributes = (): DialogBoxAttributesV2 => ({
|
||||
title: t("error"),
|
||||
close: { variant: "critical" },
|
||||
content: t("generic_error_retry"),
|
||||
});
|
||||
@@ -12,7 +12,6 @@ import { useRouter } from "next/router";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { VerticallyCentered } from "./Container";
|
||||
import type { DialogBoxAttributesV2 } from "./DialogBoxV2";
|
||||
import { genericErrorAttributes } from "./ErrorComponents";
|
||||
import FormPaper from "./Form/FormPaper";
|
||||
import FormPaperFooter from "./Form/FormPaper/Footer";
|
||||
import LinkButton from "./LinkButton";
|
||||
@@ -216,3 +215,12 @@ export const sessionExpiredDialogAttributes = (
|
||||
variant: "accent",
|
||||
},
|
||||
});
|
||||
|
||||
/**
|
||||
* {@link DialogBoxAttributesV2} for showing a generic error.
|
||||
*/
|
||||
const genericErrorAttributes = (): DialogBoxAttributesV2 => ({
|
||||
title: t("error"),
|
||||
close: { variant: "critical" },
|
||||
content: t("generic_error_retry"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user