π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Support arbitrary ReactNodes as title
Manav Rathi0e1bdfe07e34
diff --git a/web/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsxindex 05384895f1..b6c93d255d 100644--- a/web/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx+++ b/web/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx@@ -12,6 +12,7 @@ import castGateway from "@ente/shared/network/cast";import { logError } from "@ente/shared/sentry";import { Typography } from "@mui/material";import { t } from "i18next";+import { Trans } from "react-i18next";import { useEffect, useState } from "react";import { Collection } from "types/collection";import { v4 as uuidv4 } from "uuid";@@ -153,7 +154,7 @@ export default function AlbumCastDialog(props: Props) {open={props.show}onClose={props.onHide}attributes={{- title: t("CAST_ALBUM_TO_TV"),+ title: <Trans i18nKey="CAST_ALBUM_TO_TV"/>,}}>{view === "choose" && (diff --git a/web/packages/shared/components/DialogBoxV2/types.ts b/web/packages/shared/components/DialogBoxV2/types.tsindex 939b7e58c0..61c9173d69 100644--- a/web/packages/shared/components/DialogBoxV2/types.ts+++ b/web/packages/shared/components/DialogBoxV2/types.ts@@ -2,7 +2,15 @@ import { ButtonProps } from "@mui/material";export interface DialogBoxAttributesV2 {icon?: React.ReactNode;- title?: string;+ /**+ * The dialog's title+ *+ * Usually this will be a string, but it can be any {@link ReactNode}. Note+ * that it always gets wrapped in a Typography element to set the font+ * style, so if your ReactNode wants to do its own thing, it'll need to+ * reset or override these customizations.+ */+ title?: React.ReactNode;staticBackdrop?: boolean;nonClosable?: boolean;content?: any;