Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit a0ddcba

Browse files
author
Arpitkumar Chaudhari
committedAug 9, 2021
Resolving merge conflict and removing file alias
1 parent 412d00d commit a0ddcba

File tree

4 files changed

+57
-225
lines changed

4 files changed

+57
-225
lines changed
 

‎src/routes/CreateNewTeam/components/Progress/index.jsx

Lines changed: 32 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ import cn from "classnames";
1010
import PT from "prop-types";
1111
import ProgressBar from "../ProgressBar";
1212
import "./styles.module.scss";
13-
import IconMultipleActionsCheck from "../../../../assets/images/icon-multiple-actions-check-2.svg";
14-
import IconListQuill from "../../../../assets/images/icon-list-quill.svg";
15-
import IconOfficeFileText from "../../../../assets/images/icon-office-file-text.svg";
1613

1714
function Progress({
1815
extraStyleName,
@@ -22,44 +19,42 @@ function Progress({
2219
stages,
2320
percentage,
2421
}) {
25-
let backgroundIcon;
26-
if (extraStyleName === "input-skills") {
27-
backgroundIcon = <IconListQuill styleName="transparent-icon" />;
28-
} else if (extraStyleName === "input-job-description") {
29-
backgroundIcon = <IconOfficeFileText styleName="transparent-icon" />;
30-
} else {
31-
backgroundIcon = <IconMultipleActionsCheck styleName="transparent-icon" />;
32-
}
33-
3422
return (
3523
<div styleName={cn("progress", extraStyleName)}>
36-
<ProgressBar percentDone={percentage} />
37-
<ul styleName="list">
38-
{stages.map((stage) => (
39-
<li
40-
styleName={cn("list-item", {
41-
active: stage.isCurrent,
42-
done: stage.completed,
43-
})}
44-
>
45-
{stage.name}
46-
</li>
47-
))}
48-
</ul>
49-
{buttonLabel !== undefined ? (
24+
<ProgressBar percentDone={percentage} />
25+
<ul styleName="list">
26+
{stages.map((stage, idx) => (
27+
<li
28+
styleName={cn("list-item", {
29+
active: stage.isCurrent,
30+
done: stage.completed,
31+
})}
32+
data-index={idx + 1}
33+
>
34+
{stage.name}
35+
</li>
36+
))}
37+
</ul>
38+
{buttonLabel !== undefined ? (
39+
<Button
40+
styleName={cn({ searching: isSearching })}
41+
size="medium"
42+
type="secondary"
43+
disabled={isDisabled}
44+
onClick={onClick}
45+
>
46+
{isSearching ? (
5047
<>
51-
<Button
52-
size="medium"
53-
type="secondary"
54-
disabled={isDisabled}
55-
onClick={onClick}
56-
>
57-
{buttonLabel}
58-
</Button>
59-
{backgroundIcon}
48+
<div styleName="spinner">
49+
<Spinner stype="Oval" width="16" height="16" />
50+
</div>
51+
Searching
6052
</>
61-
) : null}
62-
</div>
53+
) : (
54+
buttonLabel
55+
)}
56+
</Button>) : null}
57+
</div>
6358
);
6459
}
6560

‎src/routes/CreateNewTeam/components/Progress/styles.module.scss

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,33 @@
99
color: #fff;
1010
button {
1111
border: none;
12+
&.searching {
13+
pointer-events: none;
14+
}
15+
.spinner {
16+
margin-top: 3px;
17+
margin-right: 5px;
18+
}
1219
}
1320
}
1421

1522
.input-job-description {
16-
background-image: linear-gradient(135deg, #2984bd 0%, #0ab88a 100%);
23+
background-image: linear-gradient(135deg, #2984BD 0%, #0AB88A 100%);
1724
}
1825

1926
.input-skills {
20-
background-image: linear-gradient(221.5deg, #646cd0 0%, #9d41c9 100%);
27+
background-image: linear-gradient(221.5deg, #646CD0 0%, #9d41c9 100%);
2128
}
2229

2330
.role-selection {
24-
background-image: linear-gradient(45deg, #8b41b0 0%, #ef476f 100%);
31+
background-image: linear-gradient(45deg, #8B41B0 0%, #EF476F 100%);
2532
}
2633

2734
.list {
2835
margin-bottom: 55px;
2936
& + button[disabled] {
30-
background-color: #e9e9e9;
31-
color: #fff;
37+
background-color: #E9E9E9;
38+
color: #FFF;
3239
opacity: 1;
3340
filter: none;
3441
}
@@ -39,51 +46,45 @@
3946
font-size: 14px;
4047
line-height: 16px;
4148
font-weight: 400;
42-
color: rgba(255, 255, 255, 0.6);
49+
color: rgba(#fff, 0.6);
4350

4451
&:before {
45-
content: "";
46-
color: #fff;
47-
border: 1px solid #ffffff;
52+
content: attr(data-index);
53+
font-size: 10px;
54+
line-height: 14px;
55+
font-weight: 600;
56+
padding-left: 4px;
57+
color: rgba(#fff, 0.6);
58+
border: 1px solid rgba(#fff, 0.6);
4859
border-radius: 100%;
4960
width: 16px;
5061
height: 16px;
5162
margin-right: 10px;
5263
display: block;
5364
float: left;
54-
visibility: hidden;
5565
}
5666

5767
&.active {
5868
font-weight: 500;
5969
color: #fff;
6070
&:before {
61-
visibility: visible;
71+
color: #555555;
6272
background-color: #fff;
6373
}
6474
}
6575

6676
&.done {
67-
font-weight: 400;
77+
font-weight: 500;
6878
&:before {
6979
content: "";
80+
padding-left: 3px;
7081
font-size: 9px;
71-
line-height: 14px;
72-
padding-left: 4px;
73-
visibility: visible;
82+
font-weight: 900;
83+
background-color: #0AB88A;
7484
}
7585
}
7686
}
7787

78-
.transparent-icon {
79-
position: absolute;
80-
right: -50px;
81-
top: 85px;
82-
opacity: 10%;
83-
width: 144px;
84-
height: 144px;
85-
}
86-
8788
.final-step {
8889
height: 230px;
8990
}

‎src/routes/CreateNewTeam/components/progress/index.jsx

Lines changed: 0 additions & 75 deletions
This file was deleted.

‎src/routes/CreateNewTeam/components/progress/styles.module.scss

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)
This repository has been archived.