mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
commit
d545bcaa30
@ -1,5 +1,10 @@
|
|||||||
@import '../../styles/variables';
|
@import '../../styles/variables';
|
||||||
|
|
||||||
|
// prevent background scrolling
|
||||||
|
:global(.ReactModal__Body--open) {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.modalOverlay {
|
.modalOverlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -44,6 +44,17 @@ export default class Report extends PureComponent<
|
|||||||
|
|
||||||
private toggleModal = () => {
|
private toggleModal = () => {
|
||||||
this.setState({ isModalOpen: !this.state.isModalOpen })
|
this.setState({ isModalOpen: !this.state.isModalOpen })
|
||||||
|
this.state.isModalOpen && this.reset()
|
||||||
|
}
|
||||||
|
|
||||||
|
private reset() {
|
||||||
|
this.setState({
|
||||||
|
comment: '',
|
||||||
|
message: 'Sending...',
|
||||||
|
isSending: false,
|
||||||
|
hasError: false,
|
||||||
|
hasSuccess: false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private sendEmail = async (event: Event) => {
|
private sendEmail = async (event: Event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user