Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Polish Space profile link dialog

Anand Baburajan28b8d48c852f
diff --git a/web/apps/space/src/components/ConfirmationActionSheet.tsx b/web/apps/space/src/components/ConfirmationActionSheet.tsx
index 046c324839..89a0c248bf 100644
--- a/web/apps/space/src/components/ConfirmationActionSheet.tsx
+++ b/web/apps/space/src/components/ConfirmationActionSheet.tsx
@@ -17,6 +17,7 @@ interface ConfirmationActionSheetProps {
description?: React.ReactNode;
confirmLabel: string;
confirmBackgroundColor?: string;
+ confirmClassName?: string;
confirmActionPhase?: SpaceActionPhase | null;
confirmDisabled?: boolean;
errorMessage?: string | null;
@@ -36,6 +37,7 @@ export const ConfirmationActionSheet: React.FC<
description,
confirmLabel,
confirmBackgroundColor = dangerColor,
+ confirmClassName,
confirmActionPhase = null,
confirmDisabled = false,
errorMessage = null,
@@ -155,6 +157,7 @@ export const ConfirmationActionSheet: React.FC<
<SheetButton
label={confirmLabel}
backgroundColor={confirmBackgroundColor}
+ className={confirmClassName}
color="#FFFFFF"
disabled={confirmDisabled}
actionPhase={confirmActionPhase}
@@ -192,6 +195,7 @@ export const ConfirmationActionSheet: React.FC<
interface SheetButtonProps {
backgroundColor: string;
+ className?: string;
color: string;
actionPhase?: SpaceActionPhase | null;
disabled?: boolean;
@@ -201,6 +205,7 @@ interface SheetButtonProps {
const SheetButton: React.FC<SheetButtonProps> = ({
backgroundColor,
+ className,
color,
actionPhase = null,
disabled = false,
@@ -208,6 +213,7 @@ const SheetButton: React.FC<SheetButtonProps> = ({
onClick,
}) => (
<Box
+ className={className}
component="button"
type="button"
aria-label={label}
diff --git a/web/apps/space/src/components/SpaceShareLinkDialog.tsx b/web/apps/space/src/components/SpaceShareLinkDialog.tsx
index 905289cf92..106756198e 100644
--- a/web/apps/space/src/components/SpaceShareLinkDialog.tsx
+++ b/web/apps/space/src/components/SpaceShareLinkDialog.tsx
@@ -182,7 +182,7 @@ export const SpaceShareLinkDialogHost: React.FC = () => {
}}
>
{linkChanged
- ? "New link ready"
+ ? "New link is ready"
: mode == "invite"
? "Invite friends"
: "Share your profile"}
@@ -254,9 +254,10 @@ export const SpaceShareLinkDialogHost: React.FC = () => {
<ConfirmationActionSheet
open={isChangeConfirmationOpen}
title="Change profile link?"
- description="You'll get a new link to share. The current one will stop working."
+ description="You'll get a new link to share. The current one will stop working for anyone with the link."
confirmLabel="Change link"
confirmBackgroundColor={green}
+ confirmClassName="green-bg"
confirmDisabled={confirming}
confirmActionPhase={confirming ? "busy" : null}
cancelDisabled={confirming}