fix modal button

This commit is contained in:
Sean Yesmunt 2019-12-25 15:56:35 -05:00
parent 1687edb945
commit 5cc04ca7a6

View file

@ -13,7 +13,7 @@ class ModalFirstReward extends React.PureComponent<Props> {
const { closeModal } = this.props; const { closeModal } = this.props;
return ( return (
<Modal type="card" isOpen contentLabel={__('Your First Reward')} onConfirmed={closeModal}> <Modal type="card" isOpen contentLabel={__('Your First Reward')}>
<Card <Card
title={__('Your First Reward')} title={__('Your First Reward')}
subtitle={__('You just earned your first reward!')} subtitle={__('You just earned your first reward!')}
@ -28,7 +28,7 @@ class ModalFirstReward extends React.PureComponent<Props> {
<p>{__('No need to understand it all just yet! Try watching or publishing something next.')}</p> <p>{__('No need to understand it all just yet! Try watching or publishing something next.')}</p>
</React.Fragment> </React.Fragment>
} }
actions={<Button button="primary" label={__('You Got It Dude')} />} actions={<Button button="primary" onClick={closeModal} label={__('You Got It Dude')} />}
/> />
</Modal> </Modal>
); );