From 753ed30d5cfd83b79387be669b586e400c646e2e Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 21 Sep 2024 17:25:13 +0530 Subject: [PATCH] Tinker --- .../components/Collections/AlbumCastDialog.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx index 12ace66acc..6680a945c2 100644 --- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx +++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx @@ -25,6 +25,9 @@ interface AlbumCastDialogProps { collection: Collection; } +/** + * A dialog that shows various options that the user has for casting an album. + */ export const AlbumCastDialog: React.FC = ({ open, onClose, @@ -135,14 +138,12 @@ export const AlbumCastDialog: React.FC = ({ return ( - {view === "choose" && ( + {view == "choose" && ( <> {browserCanCast && ( <> @@ -161,13 +162,12 @@ export const AlbumCastDialog: React.FC = ({ {t("pair_with_pin_description")} - setView("pin")}> {t("pair_with_pin")} )} - {view === "auto" && ( + {view == "auto" && ( {t("choose_device_from_browser")} @@ -181,7 +181,7 @@ export const AlbumCastDialog: React.FC = ({ )} - {view === "auto-cast-error" && ( + {view == "auto-cast-error" && ( {t("cast_auto_pair_failed")} = ({ )} - {view === "pin" && ( + {view == "pin" && ( <>