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

Commit ef17294

Browse files
author
Arpit Chaudhari
authored
Merge branch 'dev' into dev
2 parents b083bdd + 5bd5a3a commit ef17294

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

src/root.component.jsx

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect } from "react";
1+
import React from "react";
22
import { Provider } from "react-redux";
33
import { Router, Redirect } from "@reach/router";
44
import MyTeamsList from "./routes/MyTeamsList";
@@ -21,32 +21,6 @@ import "./styles/main.vendor.scss";
2121
import styles from "./styles/main.module.scss";
2222

2323
export default function Root() {
24-
useEffect(() => {
25-
const script = window.document.createElement("script");
26-
script.innerHTML = `
27-
window._chatlio = window._chatlio || [];
28-
! function() {
29-
var t = document.getElementById("chatlio-widget-embed");
30-
if (t && window.ChatlioReact && _chatlio.init) return void _chatlio.init(t, ChatlioReact);
31-
for (var e = function(t) {
32-
return function() {
33-
_chatlio.push([t].concat(arguments))
34-
}
35-
}, i = ["configure", "identify", "track", "show", "hide", "isShown", "isOnline", "page", "open", "showOrHide"], a = 0; a < i.length; a++) _chatlio[i[a]] || (_chatlio[i[a]] = e(i[a]));
36-
var n = document.createElement("script"),
37-
c = document.getElementsByTagName("script")[0];
38-
n.id = "chatlio-widget-embed", n.src = "https://w.chatlio.com/w.chatlio-widget.js", n.async = !0, n.setAttribute("data-embed-version", "2.3");
39-
n.setAttribute('data-widget-id', 'df6d6a4d-7193-4eaf-648b-4569f0e6b262');
40-
c.parentNode.insertBefore(n, c);
41-
}();
42-
`;
43-
window.document.body.appendChild(script);
44-
return () => {
45-
window.document.body.removeChild(
46-
document.querySelector("#chatlio-widget")
47-
);
48-
};
49-
}, []);
5024
return (
5125
<div className={styles["topcoder-micro-frontends-teams-app"]}>
5226
<Provider store={store}>

src/routes/CreateNewTeam/index.jsx

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,38 @@
33
*
44
* Container for Create New Team subroutes
55
*/
6-
import React from "react";
6+
import React, { useEffect } from "react";
77
import { useSelector } from "react-redux";
88
import CustomerScroll from "components/CustomerScroll";
99
import "./styles.module.scss";
1010

1111
const CreateNewTeam = (props) => {
12+
useEffect(() => {
13+
const script = window.document.createElement("script");
14+
script.innerHTML = `
15+
window._chatlio = window._chatlio || [];
16+
! function() {
17+
var t = document.getElementById("chatlio-widget-embed");
18+
if (t && window.ChatlioReact && _chatlio.init) return void _chatlio.init(t, ChatlioReact);
19+
for (var e = function(t) {
20+
return function() {
21+
_chatlio.push([t].concat(arguments))
22+
}
23+
}, i = ["configure", "identify", "track", "show", "hide", "isShown", "isOnline", "page", "open", "showOrHide"], a = 0; a < i.length; a++) _chatlio[i[a]] || (_chatlio[i[a]] = e(i[a]));
24+
var n = document.createElement("script"),
25+
c = document.getElementsByTagName("script")[0];
26+
n.id = "chatlio-widget-embed", n.src = "https://w.chatlio.com/w.chatlio-widget.js", n.async = !0, n.setAttribute("data-embed-version", "2.3");
27+
n.setAttribute('data-widget-id', 'df6d6a4d-7193-4eaf-648b-4569f0e6b262');
28+
c.parentNode.insertBefore(n, c);
29+
}();
30+
`;
31+
window.document.body.appendChild(script);
32+
return () => {
33+
window.document.body.removeChild(
34+
document.querySelector("#chatlio-widget")
35+
);
36+
};
37+
}, []);
1238
const { isLoading } = useSelector((state) => state.searchedRoles);
1339

1440
return (

src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const CreateTassPayment = () => {
3535
durationWeeks = 4,
3636
hoursPerWeek = "40",
3737
} = role;
38+
3839
let rate;
3940
let availability;
4041

@@ -48,6 +49,7 @@ const CreateTassPayment = () => {
4849
rate = rates.global;
4950
availability = "Full-Time Availability";
5051
}
52+
5153
temp.push({
5254
imageUrl,
5355
name,

0 commit comments

Comments
 (0)