Skip to content

Commit 6c3cb3a

Browse files
committed
stop button added in loader
1 parent ebc21b8 commit 6c3cb3a

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

src/component/modals/Loader.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.loader-main {
2+
display: flex;
3+
align-items: center;
4+
}
5+
.loader-items {
6+
position: relative;
7+
margin: 10px 25px;
8+
}
9+
.loader-btn {
10+
margin-left: 20px;
11+
background-color: #1e88e5;
12+
color: white;
13+
font-weight: 200;
14+
}

src/component/modals/Loader.jsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
import React from 'react';
22
import BeatLoader from 'react-spinners/BeatLoader';
33
import ParentModal from './ParentModal';
4+
import './Loader.css';
45

56
const Loader = ({ superState }) => (
6-
<ParentModal ModelOpen={superState.loader} title="Wait........">
7-
<BeatLoader color="#36d7b7" />
7+
<ParentModal ModelOpen={superState.loader} title="Wait.... The function is being executed">
8+
<div className="loader-main">
9+
<BeatLoader color="#36d7b7" className="loader-items" />
10+
<BeatLoader color="#36d7b7" className="loader-items" />
11+
<BeatLoader color="#36d7b7" className="loader-items" />
12+
<BeatLoader color="#36d7b7" className="loader-items" />
13+
<BeatLoader color="#36d7b7" className="loader-items" />
14+
<BeatLoader color="#36d7b7" className="loader-items" />
15+
<BeatLoader color="#36d7b7" className="loader-items" />
16+
</div>
17+
<br />
18+
<br />
19+
{ superState.dockerCheck && superState.graphs[superState.curGraphIndex].built
20+
? <button className="btn loader-btn" type="button">STOP Docker Build</button>
21+
: '' }
822
</ParentModal>
923
);
1024

0 commit comments

Comments
 (0)