Skip to content

Commit

Permalink
chore: hardcode reactivate modal visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
abshierjoel committed Jun 28, 2023
1 parent 1c70ed7 commit 0f886b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/operator/account/AccountViewHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const AccountViewHeader: FC = () => {
setDeleteOverlayVisible,
setReactivateOverlayVisible,
deleteOverlayVisible,
reactivateOverlayVisible,
} = useContext(AccountContext)
const {hasWritePermissions} = useContext(OperatorContext)
const canConvertToContract =
Expand Down Expand Up @@ -67,7 +66,7 @@ const AccountViewHeader: FC = () => {
<ButtonBase
color={ComponentColor.Primary}
shape={ButtonShape.Default}
onClick={() => setReactivateOverlayVisible(!reactivateOverlayVisible)}
onClick={() => setReactivateOverlayVisible(true)}
testID="account-reactivate--button"
>
Reactivate Account
Expand Down
4 changes: 1 addition & 3 deletions src/operator/account/ReactivateAccountOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ const ReactivateAccountOverlay: FC = () => {
<Overlay.Header
title="Reactivate Account"
style={{color: '#FFFFFF'}}
onDismiss={() =>
setReactivateOverlayVisible(!reactivateOverlayVisible)
}
onDismiss={() => setReactivateOverlayVisible(false)}
/>
<Overlay.Body>
<Alert color={ComponentColor.Danger} icon={IconFont.AlertTriangle}>
Expand Down

0 comments on commit 0f886b7

Please sign in to comment.