fix channel revoke confirmation
This commit is contained in:
parent
179722b1ef
commit
e8576eec8c
2 changed files with 5 additions and 11 deletions
|
@ -1202,5 +1202,7 @@
|
|||
"Sending information to third parties (e.g. Google Analytics or Mixpanel) allows us to use detailed\n analytical reports to improve all aspects of LBRY.": "Sending information to third parties (e.g. Google Analytics or Mixpanel) allows us to use detailed\n analytical reports to improve all aspects of LBRY.",
|
||||
"Sharing information with LBRY, Inc. allows us to report to publishers how their content is doing, as\n well as track basic usage and performance. This is the minimum required to earn rewards from LBRY, Inc.": "Sharing information with LBRY, Inc. allows us to report to publishers how their content is doing, as\n well as track basic usage and performance. This is the minimum required to earn rewards from LBRY, Inc.",
|
||||
"No information will be sent directly to LBRY, Inc. or third-parties about your usage. Note that as\n peer-to-peer software, your IP address and potentially other system information can be sent to other\n users, though this information is not stored permanently.": "No information will be sent directly to LBRY, Inc. or third-parties about your usage. Note that as\n peer-to-peer software, your IP address and potentially other system information can be sent to other\n users, though this information is not stored permanently.",
|
||||
"%view_count% Views": "%view_count% Views"
|
||||
"%view_count% Views": "%view_count% Views",
|
||||
"This channel hasn't published anything yet": "This channel hasn't published anything yet",
|
||||
"Buy": "Buy"
|
||||
}
|
|
@ -91,21 +91,13 @@ export default function ModalRevokeClaim(props: Props) {
|
|||
const label = getButtonLabel(type, isSupport);
|
||||
|
||||
return (
|
||||
<Modal
|
||||
isOpen
|
||||
contentLabel={label}
|
||||
type="card"
|
||||
confirmButtonLabel={label}
|
||||
onConfirmed={revokeClaim}
|
||||
onAborted={closeModal}
|
||||
confirmButtonDisabled={valueType === txnTypes.CHANNEL && name !== channelName}
|
||||
>
|
||||
<Modal isOpen contentLabel={label} type="card" onAborted={closeModal}>
|
||||
<Card
|
||||
title={label}
|
||||
body={getMsgBody(type, isSupport, name)}
|
||||
actions={
|
||||
<div className="section__actions">
|
||||
<Button button="primary" label={label} onClick={revokeClaim} />
|
||||
<Button disabled={name !== channelName} button="primary" label={label} onClick={revokeClaim} />
|
||||
<Button button="link" label={__('Cancel')} onClick={closeModal} />
|
||||
</div>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue