lbry-desktop/ui/modal/modalCommentAcknowledgement/view.jsx

42 lines
1.1 KiB
React
Raw Permalink Normal View History

2019-11-14 21:02:15 +01:00
// @flow
import React from 'react';
import { Modal } from 'modal/modal';
type Props = {
onCommentAcknowledge: () => void,
closeModal: () => void,
};
class ModalCommentAcknowledgement extends React.PureComponent<Props> {
render() {
const { closeModal, onCommentAcknowledge } = this.props;
function onAbortedOrConfirmed() {
onCommentAcknowledge();
closeModal();
}
return (
<Modal
isOpen
onAborted={onAbortedOrConfirmed}
2020-08-26 22:28:33 +02:00
title={__('Comment acknowledgement')}
2019-11-14 21:02:15 +01:00
onConfirmed={onAbortedOrConfirmed}
>
<p>{__('A few things to know before making your comment:')}</p>
<ul>
<li>
{__(
'Commenting is in alpha. During the alpha, all comments are sent to a LBRY, Inc. server, not the LBRY network itself.'
)}
</li>
2020-08-26 22:28:33 +02:00
<li>{__('All comments are viewable by anyone, keep this in mind before writing a comment.')}</li>
2019-11-14 21:02:15 +01:00
<li>{__('When the alpha ends, we will attempt to transition comments, but do not promise to do so.')}</li>
</ul>
</Modal>
);
}
}
export default ModalCommentAcknowledgement;