mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
show cancel button for ignore commenters config (#2536)
This commit is contained in:
@@ -39,17 +39,32 @@ const IgnoreUserSettingsContainer: FunctionComponent<Props> = ({ viewer }) => {
|
||||
Ignored Commenters
|
||||
</Typography>
|
||||
</Localized>
|
||||
<Localized id="profile-account-ignoredCommenters-manage">
|
||||
<Button
|
||||
variant="outlineFilled"
|
||||
size="small"
|
||||
color="primary"
|
||||
onClick={toggleManage}
|
||||
className={CLASSES.ignoredCommenters.manageButton}
|
||||
>
|
||||
Manage
|
||||
</Button>
|
||||
</Localized>
|
||||
{showManage && (
|
||||
<Localized id="profile-account-ignoredCommenters-cancel">
|
||||
<Button
|
||||
variant="outlineFilled"
|
||||
size="small"
|
||||
color="primary"
|
||||
onClick={toggleManage}
|
||||
className={CLASSES.ignoredCommenters.manageButton}
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
</Localized>
|
||||
)}
|
||||
{!showManage && (
|
||||
<Localized id="profile-account-ignoredCommenters-manage">
|
||||
<Button
|
||||
variant="outlineFilled"
|
||||
size="small"
|
||||
color="primary"
|
||||
onClick={toggleManage}
|
||||
className={CLASSES.ignoredCommenters.manageButton}
|
||||
>
|
||||
Manage
|
||||
</Button>
|
||||
</Localized>
|
||||
)}
|
||||
</Flex>
|
||||
{showManage && (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user