style: remove some verbose codes (#2741)

(cherry picked from commit 34141958eb)
This commit is contained in:
LongYinan
2023-06-09 14:55:41 +08:00
committed by Alex Yang
parent a2acb6cf9f
commit d83ef83d05
5 changed files with 45 additions and 79 deletions
@@ -31,11 +31,7 @@ export const TmpDisableAffineCloudModal: React.FC<
>
<ModalWrapper width={480}>
<Header>
<IconButton
onClick={() => {
onClose();
}}
>
<IconButton onClick={onClose}>
<CloseIcon />
</IconButton>
</Header>
@@ -69,13 +65,7 @@ export const TmpDisableAffineCloudModal: React.FC<
/>
</StyleImage>
<StyleButtonContainer>
<StyleButton
shape="round"
type="primary"
onClick={() => {
onClose();
}}
>
<StyleButton shape="round" type="primary" onClick={onClose}>
{t['Got it']()}
</StyleButton>
</StyleButtonContainer>