Skip to content

Commit deecf1d

Browse files
committed
Remove cancel button in the VerifyDomainScreen
1 parent e3d2389 commit deecf1d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

portal/src/graphql/portal/VerifyDomainScreen.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { useCallback, useContext, useMemo } from "react";
22
import { useNavigate, useParams } from "react-router-dom";
33
import { Context, FormattedMessage } from "@oursky/react-messageformat";
44
import {
5-
DefaultButton,
65
DetailsList,
76
IColumn,
87
IconButton,
@@ -169,10 +168,6 @@ const VerifyDomain: React.FC<VerifyDomainProps> = function VerifyDomain(
169168
.catch(() => {});
170169
}, [verifyDomain, domain, navigate]);
171170

172-
const onCancelClick = useCallback(() => {
173-
navigate("../..");
174-
}, [navigate]);
175-
176171
const errorRules: ErrorParseRule[] = useMemo(() => {
177172
return [
178173
{
@@ -226,9 +221,6 @@ const VerifyDomain: React.FC<VerifyDomainProps> = function VerifyDomain(
226221
loading={verifyingDomain}
227222
onClick={onVerifyClick}
228223
/>
229-
<DefaultButton onClick={onCancelClick}>
230-
<FormattedMessage id="cancel" />
231-
</DefaultButton>
232224
</Stack>
233225

234226
<ErrorDialog error={verifyDomainError} rules={errorRules} />

0 commit comments

Comments
 (0)