Skip to content

Commit 56246fc

Browse files
committed
Remove Close button from CLI auth confirm
1 parent 6856f87 commit 56246fc

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

packages/template/src/components-page/cli-auth-confirm.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ export function CliAuthConfirmation({ fullPage = true }: { fullPage?: boolean })
6161
<MessageCard
6262
title={t("CLI Authorization Successful")}
6363
fullPage={fullPage}
64-
primaryButtonText={t("Close")}
65-
primaryAction={() => window.close()}
6664
>
6765
<Typography>
68-
{t("The CLI application has been authorized successfully. You can now close this window and return to the command line.")}
66+
{t("The CLI application has been authorized successfully. You can close this window and return to the command line.")}
6967
</Typography>
7068
</MessageCard>
7169
);
@@ -78,8 +76,6 @@ export function CliAuthConfirmation({ fullPage = true }: { fullPage?: boolean })
7876
fullPage={fullPage}
7977
primaryButtonText={t("Try Again")}
8078
primaryAction={() => setError(null)}
81-
secondaryButtonText={t("Cancel")}
82-
secondaryAction={() => window.close()}
8379
>
8480
<Typography className="text-red-600">
8581
{t("Failed to authorize the CLI application:")}
@@ -97,8 +93,6 @@ export function CliAuthConfirmation({ fullPage = true }: { fullPage?: boolean })
9793
fullPage={fullPage}
9894
primaryButtonText={authorizing ? t("Authorizing...") : t("Authorize")}
9995
primaryAction={handleAuthorize}
100-
secondaryButtonText={t("Cancel")}
101-
secondaryAction={() => window.close()}
10296
>
10397
<Typography>
10498
{t("A command line application is requesting access to your account. Click the button below to authorize it.")}

0 commit comments

Comments
 (0)