Newer
Older

Lucas Eduardo Schoenfelder
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import React, {useContext} from 'react';
import Modal from '@material-ui/core/Modal';
import Fade from '@material-ui/core/Fade';
import styled from 'styled-components'
import { Button } from '@material-ui/core';
import Backdrop from '@material-ui/core/Backdrop';
import { Store } from '../Store.js';
const StyledModal = styled(Modal)`
margin : 0 !important;
margin-left : 0 !important;
display : flex;
align-items: center;
justify-content : center;
text-align : center;
padding : 10px !important;
border-radius : 4px;
max-width : none;
max-height : none;
min-width: 240px;
min-height: 150px !important;
`
const StyledH2 = styled.h2`
color : rgb(102,102,102);
fontSize : 20px;
fontWeight: 500;
line-height : 22px;
margin-bottom : 10px;
margin-top : 0px;
letter-spacing : .005em;
`
const StyledParagraph = styled.p`
margin : 0 0 10px;
color : rgb(102, 102, 102);
font-size : 14px;
`
const StyledButton = styled(Button)`
background-color : rgba(158,158,158,0.2);
text-decoration : none;
cursor : pointer;
border: 0;
padding : 0 6px;
min-height: 36px;
min-width: 88px;
background: transparent;
font-size : 14px;
font-weight : 500px;
letter-spacing : .01em;
text-align : center;
`
const StyledSpan = styled.span`
color : rgb(0,188,212);
`
const StyledDivContent = styled.div`
padding : 24px;
padding-left : 25px;
padding-right:25px;
padding-bottom:10px;
text-align: start;
`
const StyledDivAction = styled.div`
min-height : 52px;
margin-bottom : 0;
display: flex;
justify-content: right;
padding-right: 8px;
padding-left: 16px;
`
const StyledDivContainer = styled.div`
box-sizing : border-box;
background-color : white;
max-width : none;
align : center;
border-radius : 4px;
`
export default function IllegalContentModal (props) {
const {state} = useContext(Store)

Lucas Eduardo Schoenfelder
committed
return (
<StyledModal
aria-labelledby="transition-modal-title"
aria-describedby="transition-modal-description"
open={props.open}

Lucas Eduardo Schoenfelder
committed
onClose={props.handleClose}
closeAfterTransition
BackdropComponent={Backdrop}
BackdropProps={{
timeout: 500,
}}
>
<Fade in={props.open}>
<StyledDivContainer >
<StyledDivContent>
<StyledH2>{state.currentUser.name}!</StyledH2>

Lucas Eduardo Schoenfelder
committed
<div>
<StyledParagraph>Seu recurso não está de acordo com os termos</StyledParagraph>
</div>
</StyledDivContent>
<StyledDivAction>
<StyledButton onClick={props.handleClose}><StyledSpan>TERMOS</StyledSpan></StyledButton>
</StyledDivAction>
</StyledDivContainer>
</Fade>
</StyledModal>
)
}