π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi6e08ca8f1446
diff --git a/web/packages/shared/components/ErrorComponents.tsx b/web/packages/shared/components/ErrorComponents.tsxdeleted file mode 100644index c53ab442ad..0000000000--- a/web/packages/shared/components/ErrorComponents.tsx+++ /dev/null@@ -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"),-});diff --git a/web/packages/shared/components/LoginComponents.tsx b/web/packages/shared/components/LoginComponents.tsxindex 8a859591f1..b888b81d95 100644--- a/web/packages/shared/components/LoginComponents.tsx+++ b/web/packages/shared/components/LoginComponents.tsx@@ -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"),+});