@@ -59,31 +85,35 @@ const CreateTassPayment = () => {
summary
- {addedRoles.map((role) => (
+ {value.map((data) => (
-
+ {data.imageUrl && !error ? (
+
+ ) : (
+
+ )}
-
{role.name}
+
{data.name}
- {role.numberOfResources} x ${dummyRates.global}/
- Week
+ {data.numberOfResources} x ${data.rate}/ Week
- {role.durationWeeks} Week Duration
+ {data.durationWeeks} Week Duration
- {role.hoursPerWeek
+ {data.hoursPerWeek
? "Part-Time Availability"
: "Full-Time Availability"}
- ${role.numberOfResources * dummyRates.global}
+ ${data.numberOfResources * data.rate}
@@ -130,7 +160,7 @@ const CreateTassPayment = () => {
stages={stages}
extraStyleName="role-selection final-step"
disabled="true"
- percentage="97"
+ percentage="98"
/>
);
diff --git a/src/routes/CreateNewTeam/pages/CreateTaasPayment/styles.module.scss b/src/routes/CreateNewTeam/pages/CreateTaasPayment/styles.module.scss
index 02102838..90a0d593 100644
--- a/src/routes/CreateNewTeam/pages/CreateTaasPayment/styles.module.scss
+++ b/src/routes/CreateNewTeam/pages/CreateTaasPayment/styles.module.scss
@@ -58,14 +58,14 @@
display: flex;
justify-content: space-between;
margin-right: 15px;
- }
- .image {
- background-color: #ffffff;
- border: 1px solid #d4d4d4;
- border-radius: 5px;
- width: 30px;
- height: 30px;
+ .role-icon {
+ width: 42px;
+ height: 42px;
+ object-fit: cover;
+ border: 1px solid #d4d4d4;
+ border-radius: 5px;
+ }
}
.title {
diff --git a/src/routes/CreateNewTeam/pages/CreateTeamLanding/index.jsx b/src/routes/CreateNewTeam/pages/CreateTeamLanding/index.jsx
index cc2f2abb..6c674d90 100644
--- a/src/routes/CreateNewTeam/pages/CreateTeamLanding/index.jsx
+++ b/src/routes/CreateNewTeam/pages/CreateTeamLanding/index.jsx
@@ -26,21 +26,23 @@ function CreateNewTeam() {
return (
- Let’s find you great talent } />
-
- You can search for your perfect talent matches in 3 unique ways:
-
+
Let’s find you great talent }
+ />
+
You can search for your perfect talent matches in 3 unique ways:
}
backgroundImage="linear-gradient(101.95deg, #8B41B0 0%, #EF476F 100%)"
onClick={() => goToRoute("/taas/createnewteam/role")}
/>
}
@@ -49,13 +51,13 @@ function CreateNewTeam() {
/>
}
backgroundImage="linear-gradient(135deg, #2984BD 0%, #0AB88A 100%)"
onClick={() => goToRoute("/taas/createnewteam/jd")}
/>
-
-
);
diff --git a/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx b/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
index 49cbc8ba..ab0bc7d2 100644
--- a/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
+++ b/src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
@@ -18,7 +18,7 @@ function InputJobDescription() {
{ name: "Input Job Description", isCurrent: true },
{ name: "Search Member" },
{ name: "Overview of the Results" },
- { name: "Refundable Deposite Payment" },
+ { name: "Refundable Deposit Payment" },
]);
const [jdString, setJdString] = useState("");
const [jobTitle, setJobTitle] = useState("");
diff --git a/src/routes/CreateNewTeam/pages/InputSkills/index.jsx b/src/routes/CreateNewTeam/pages/InputSkills/index.jsx
index 20ff6ede..a4293351 100644
--- a/src/routes/CreateNewTeam/pages/InputSkills/index.jsx
+++ b/src/routes/CreateNewTeam/pages/InputSkills/index.jsx
@@ -21,7 +21,7 @@ function InputSkills() {
{ name: "Input Skills", isCurrent: true },
{ name: "Search Member" },
{ name: "Overview of the Results" },
- { name: "Refundable Deposite Payment" },
+ { name: "Refundable Deposit Payment" },
]);
const [selectedSkills, setSelectedSkills] = useState([]);
const [popupSelectedSkills, setPopupSelectedSkills] = useState([]);
diff --git a/src/routes/CreateNewTeam/pages/SelectRole/index.jsx b/src/routes/CreateNewTeam/pages/SelectRole/index.jsx
index 54911650..c6ba179d 100644
--- a/src/routes/CreateNewTeam/pages/SelectRole/index.jsx
+++ b/src/routes/CreateNewTeam/pages/SelectRole/index.jsx
@@ -25,7 +25,7 @@ function SelectRole() {
{ name: "Select a Role", isCurrent: true },
{ name: "Search Member" },
{ name: "Overview of the Results" },
- { name: "Refundable Deposite Payment" },
+ { name: "Refundable Deposit Payment" },
]);
const [selectedRoleId, setSelectedRoleId] = useState(null);
const [roleDetailsModalOpen, setRoleDetailsModalOpen] = useState(false);
diff --git a/src/routes/JobForm/index.jsx b/src/routes/JobForm/index.jsx
index 724f98ca..8405d2c4 100644
--- a/src/routes/JobForm/index.jsx
+++ b/src/routes/JobForm/index.jsx
@@ -49,7 +49,7 @@ const JobForm = ({ teamId, jobId }) => {
const createValues = {
...values,
projectId: teamId,
- }
+ };
await createJob(createValues).then(
() => {
toastr.success("Job created successfully.");
diff --git a/src/routes/JobForm/utils.js b/src/routes/JobForm/utils.js
index 2b4c0fe5..47eb8538 100644
--- a/src/routes/JobForm/utils.js
+++ b/src/routes/JobForm/utils.js
@@ -26,7 +26,7 @@ const EDIT_JOB_ROWS = [
{ type: FORM_ROW_TYPE.SINGLE, fields: ["status"] },
];
-const validateDuration = (x, y, {duration}) => {
+const validateDuration = (x, y, { duration }) => {
if (!duration) return undefined;
const converted = Number(duration);
@@ -35,7 +35,7 @@ const validateDuration = (x, y, {duration}) => {
}
return undefined;
-}
+};
/**
* return edit job configuration
diff --git a/src/routes/PositionDetails/components/CandidatesStatusFilter/index.jsx b/src/routes/PositionDetails/components/CandidatesStatusFilter/index.jsx
index 8e1be98e..35f36d8b 100644
--- a/src/routes/PositionDetails/components/CandidatesStatusFilter/index.jsx
+++ b/src/routes/PositionDetails/components/CandidatesStatusFilter/index.jsx
@@ -17,22 +17,26 @@ const CandidatesStatusFilter = ({ statusFilterKey, onChange, candidates }) => {
return (
{CANDIDATE_STATUS_FILTERS.map((statusFilter) => {
- const count = _.filter(candidates, (candidate) => statusFilter.statuses.includes(candidate.status)).length;
+ const count = _.filter(candidates, (candidate) =>
+ statusFilter.statuses.includes(candidate.status)
+ ).length;
return (
onChange(statusFilter)}
>
- {statusFilter.buttonText} (
- {count})
- {statusFilter.key === CANDIDATE_STATUS_FILTER_KEY.TO_REVIEW && count > 0 && (
- Pending
- )}
+ {statusFilter.buttonText} ({count})
+ {statusFilter.key === CANDIDATE_STATUS_FILTER_KEY.TO_REVIEW &&
+ count > 0 && Pending }
- )
- })}
+ );
+ })}
);
};
diff --git a/src/routes/PositionDetails/components/InterviewConfirmPopup/styles.module.scss b/src/routes/PositionDetails/components/InterviewConfirmPopup/styles.module.scss
index 7d0520e6..f3a95213 100644
--- a/src/routes/PositionDetails/components/InterviewConfirmPopup/styles.module.scss
+++ b/src/routes/PositionDetails/components/InterviewConfirmPopup/styles.module.scss
@@ -3,7 +3,7 @@
margin-bottom: 20px;
}
& * a {
- color: #0D61BF;
+ color: #0d61bf;
}
}
@@ -14,4 +14,4 @@
.video {
width: 100%;
-}
\ No newline at end of file
+}
diff --git a/src/routes/PositionDetails/components/InterviewDetailsPopup/styles.module.scss b/src/routes/PositionDetails/components/InterviewDetailsPopup/styles.module.scss
index f813ea88..952ec3fe 100644
--- a/src/routes/PositionDetails/components/InterviewDetailsPopup/styles.module.scss
+++ b/src/routes/PositionDetails/components/InterviewDetailsPopup/styles.module.scss
@@ -7,7 +7,7 @@
.user {
font-size: 14px;
- color: #0D61BF;
+ color: #0d61bf;
max-width: 37%;
.max-warning-txt {
padding-top: 5px;
@@ -20,7 +20,7 @@
.top {
width: 100%;
padding-bottom: 25px;
- border-bottom: 1px solid #E9E9E9;
+ border-bottom: 1px solid #e9e9e9;
display: flex;
flex-direction: row;
align-items: center;
@@ -29,7 +29,7 @@
.center {
padding: 25px 0;
- border-bottom: 1px solid #E9E9E9;
+ border-bottom: 1px solid #e9e9e9;
}
.center-header {
@@ -56,7 +56,7 @@
background: #fff;
margin: 10px 0 0 0;
padding: 0;
- color: #0D61BF;
+ color: #0d61bf;
border: none;
border-radius: 0;
@@ -73,7 +73,7 @@
}
.array-input {
- width: 100%
+ width: 100%;
}
.remove-item {
@@ -81,9 +81,9 @@
right: 45px;
margin-top: 33px;
font-size: 33px;
- color: #EF476F;
+ color: #ef476f;
cursor: pointer;
&:focus {
outline: none;
}
-}
\ No newline at end of file
+}
diff --git a/src/routes/PositionDetails/components/LatestInterview/styles.module.scss b/src/routes/PositionDetails/components/LatestInterview/styles.module.scss
index ab6df681..8f0d70f3 100644
--- a/src/routes/PositionDetails/components/LatestInterview/styles.module.scss
+++ b/src/routes/PositionDetails/components/LatestInterview/styles.module.scss
@@ -5,4 +5,4 @@
.strong {
font-weight: bold;
margin-bottom: 8px;
-}
\ No newline at end of file
+}
diff --git a/src/routes/PositionDetails/components/PrevInterviewItem/styles.module.scss b/src/routes/PositionDetails/components/PrevInterviewItem/styles.module.scss
index fc9df5f8..d6ae95b7 100644
--- a/src/routes/PositionDetails/components/PrevInterviewItem/styles.module.scss
+++ b/src/routes/PositionDetails/components/PrevInterviewItem/styles.module.scss
@@ -1,3 +1,3 @@
.email {
margin-bottom: 8px;
-}
\ No newline at end of file
+}
diff --git a/src/routes/PositionDetails/components/PreviousInterviewsPopup/styles.module.scss b/src/routes/PositionDetails/components/PreviousInterviewsPopup/styles.module.scss
index 915099c3..e4011358 100644
--- a/src/routes/PositionDetails/components/PreviousInterviewsPopup/styles.module.scss
+++ b/src/routes/PositionDetails/components/PreviousInterviewsPopup/styles.module.scss
@@ -1,6 +1,6 @@
.user {
font-size: 14px;
- color: #0D61BF;
+ color: #0d61bf;
padding-bottom: 25px;
- border-bottom: 1px solid #E9E9E9;
-}
\ No newline at end of file
+ border-bottom: 1px solid #e9e9e9;
+}
diff --git a/src/routes/PositionDetails/components/SelectCandidatePopup/styles.module.scss b/src/routes/PositionDetails/components/SelectCandidatePopup/styles.module.scss
index d05d1184..d229fcf7 100644
--- a/src/routes/PositionDetails/components/SelectCandidatePopup/styles.module.scss
+++ b/src/routes/PositionDetails/components/SelectCandidatePopup/styles.module.scss
@@ -8,8 +8,8 @@ ol {
.user {
font-size: 14px;
- color: #0D61BF;
+ color: #0d61bf;
padding-bottom: 25px;
- border-bottom: 1px solid #E9E9E9;
+ border-bottom: 1px solid #e9e9e9;
margin-bottom: 25px;
-}
\ No newline at end of file
+}
diff --git a/src/routes/ResourceBookingForm/index.jsx b/src/routes/ResourceBookingForm/index.jsx
index 10d2c994..58c8ed7b 100644
--- a/src/routes/ResourceBookingForm/index.jsx
+++ b/src/routes/ResourceBookingForm/index.jsx
@@ -67,18 +67,18 @@ const ResourceBookingDetails = ({ teamId, resourceBookingId }) => {
const getRequestData = (values) => {
// omit read-only fields
- const data = _.omit(values, ['handle', 'jobTitle'])
+ const data = _.omit(values, ["handle", "jobTitle"]);
// convert dates to the API format before sending
if (data.startDate) {
- data.startDate = moment(data.startDate).format('YYYY-MM-DD')
+ data.startDate = moment(data.startDate).format("YYYY-MM-DD");
}
if (data.endDate) {
- data.endDate = moment(data.endDate).format('YYYY-MM-DD')
+ data.endDate = moment(data.endDate).format("YYYY-MM-DD");
}
- return data
- }
+ return data;
+ };
return (
diff --git a/src/routes/TeamAccess/components/AddModal/index.jsx b/src/routes/TeamAccess/components/AddModal/index.jsx
index 7049f7b0..4f924e2d 100644
--- a/src/routes/TeamAccess/components/AddModal/index.jsx
+++ b/src/routes/TeamAccess/components/AddModal/index.jsx
@@ -17,30 +17,30 @@ import { getMemberSuggestions } from "services/teams";
*
* @returns {Promise} A promise that resolves to list of suggested users
*/
-const loadSuggestions = inputVal => {
+const loadSuggestions = (inputVal) => {
return getMemberSuggestions(inputVal)
- .then(res => {
+ .then((res) => {
const users = _.get(res, "data.result.content", []);
- return users.map(user => ({
+ return users.map((user) => ({
label: user.handle,
- value: user.handle
- }))
+ value: user.handle,
+ }));
})
.catch(() => {
console.warn("could not get suggestions");
return [];
- })
-}
+ });
+};
/**
* Function to call if user does not have permission to see suggestions
* @returns {Promise} Promise resolving to empty array
*/
const emptySuggestions = () => {
- return new Promise(resolve => {
+ return new Promise((resolve) => {
resolve([]);
- })
-}
+ });
+};
/**
* Filters selected members, keeping those who could not be added to team
@@ -120,7 +120,7 @@ const AddModal = ({ open, onClose, teamId, validateAdds, showSuggestions }) => {
const numAdds = success.length;
toastr.success(
"Members Added",
- `Successfully added ${formatPlural(numAdds, 'member')}`
+ `Successfully added ${formatPlural(numAdds, "member")}`
);
}
@@ -210,7 +210,7 @@ const AddModal = ({ open, onClose, teamId, validateAdds, showSuggestions }) => {
placeholder="Enter email address(es) or user handles"
noOptionsText="Type to search"
loadingText="Loading..."
- loadOptions={showSuggestions ? loadSuggestions: emptySuggestions}
+ loadOptions={showSuggestions ? loadSuggestions : emptySuggestions}
defaultOptions={[]}
/>
{validationError && (
diff --git a/src/routes/TeamAccess/components/AddModalContainer/index.jsx b/src/routes/TeamAccess/components/AddModalContainer/index.jsx
index 2b9a2788..140dd1e1 100644
--- a/src/routes/TeamAccess/components/AddModalContainer/index.jsx
+++ b/src/routes/TeamAccess/components/AddModalContainer/index.jsx
@@ -25,7 +25,9 @@ const checkForMatches = (newMember, memberList) => {
return member.email && member.email.toLowerCase() === lowered;
});
}
- return memberList.find((member) => member.handle && member.handle.toLowerCase() === lowered);
+ return memberList.find(
+ (member) => member.handle && member.handle.toLowerCase() === lowered
+ );
};
const AddModalContainer = ({
diff --git a/src/routes/TeamAccess/components/DeleteModal/index.jsx b/src/routes/TeamAccess/components/DeleteModal/index.jsx
index 14efd7f2..c0eb3721 100644
--- a/src/routes/TeamAccess/components/DeleteModal/index.jsx
+++ b/src/routes/TeamAccess/components/DeleteModal/index.jsx
@@ -23,11 +23,12 @@ const getText = (isSelf, userHandleOrEmail) =>
access to the team and couldn't see or interact with it anymore. Do
you still want to remove the member?`;
-const getSuccessTitle = (isSelf) =>
- isSelf ? "Team Left" : "Member Removed";
+const getSuccessTitle = (isSelf) => (isSelf ? "Team Left" : "Member Removed");
const getSuccessText = (isSelf, userHandleOrEmail) =>
- isSelf ? "You have successfully left the team" : `You have successfully removed ${userHandleOrEmail} from the team`;
+ isSelf
+ ? "You have successfully left the team"
+ : `You have successfully removed ${userHandleOrEmail} from the team`;
const getFailedTitle = (isSelf) =>
isSelf ? "Failed to Leave the Team" : "Failed to Remove Member";
@@ -39,7 +40,10 @@ function DeleteModal({ selected, open, onClose, teamId }) {
const [loading, setLoading] = useState(false);
const { userId } = useSelector((state) => state.authUser);
- const isSelf = useMemo(() => selected && selected.userId === userId, [selected, userId]);
+ const isSelf = useMemo(() => selected && selected.userId === userId, [
+ selected,
+ userId,
+ ]);
const userHandleOrEmail = useMemo(() => {
if (selected) {
return selected.handle ? selected.handle : selected.email;