Skip to content

Commit 66f96d8

Browse files
committed
Added hide info - modal
1 parent 3a3aa05 commit 66f96d8

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

client/src/components/Timeseries/UploadEvents/UploadEvents.scss

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,52 @@ button, input, div{
1515
cursor: pointer;
1616
}
1717

18+
.upload-info {
19+
label{
20+
cursor: pointer;
21+
position: relative;
22+
padding-left: 25px;
23+
24+
&:before, &:after {
25+
position: absolute;
26+
}
27+
28+
&:before{
29+
content: "";
30+
top: 2px;
31+
left: 0px;
32+
width: 12px;
33+
height: 12px;
34+
border: 1px solid #fff;
35+
}
36+
37+
&:after {
38+
font-size: 12px;
39+
text-align: center;
40+
content: "\2713";
41+
line-height: 11px;
42+
left: 2px;
43+
top: 4px;
44+
opacity: 0;
45+
transition: all .2s ease-in-out;
46+
}
47+
48+
}
49+
50+
input{
51+
&[type="checkbox"] {
52+
width: 0;
53+
height: 0;
54+
opacity: 0;
55+
position: absolute;
56+
57+
&:checked + label:after {
58+
opacity: 1;
59+
}
60+
}
61+
}
62+
}
63+
1864
.modal-footer{
1965
li{
2066
display: inline-block;
@@ -48,6 +94,7 @@ button, input, div{
4894
}
4995
}
5096
}
97+
5198
pre{
5299
margin-top: 30px;
53100
background: $main-color !important;

client/src/components/Timeseries/UploadEvents/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ class UploadEvents extends Component<Props, State> {
111111
<div>
112112
<p>Your .JSON file should follow this example:</p>
113113
<SyntaxHighlighter style={dracula}>{codeString}</SyntaxHighlighter>
114+
<div className="upload-info">
115+
<input type="checkbox" id="hideInfo"></input>
116+
<label htmlFor="hideInfo">Do not show me again</label>
117+
</div>
114118
</div>
115119
);
116120
case 2:

0 commit comments

Comments
 (0)