This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export default function Root() {
24
24
< Router >
25
25
< Redirect from = "/taas" to = "/taas/myteams" exact />
26
26
< MyTeamsList path = "/taas/myteams" />
27
+ < CreateNewTeam path = "/taas/myteams/createnewteam" />
27
28
< MyTeamsDetails path = "/taas/myteams/:teamId" />
28
29
< JobDetails path = "/taas/myteams/:teamId/positions/:jobId" />
29
30
< JobForm path = "/taas/myteams/:teamId/positions/:jobId/edit" />
@@ -32,7 +33,6 @@ export default function Root() {
32
33
< ResourceBookingForm path = "/taas/myteams/:teamId/rb/:resourceBookingId/edit" />
33
34
< PositionDetails path = "/taas/myteams/:teamId/positions/:positionId/candidates" />
34
35
< TeamAccess path = "/taas/myteams/:teamId/access" />
35
- < CreateNewTeam path = "/taas/myteams/createnewteam" />
36
36
< InputSkills path = "/taas/myteams/createnewteam/:projectId/skills" />
37
37
< SelectRole path = "/taas/myteams/createnewteam/:projectId/role" />
38
38
</ Router >
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import IconMultipleActionsCheck from "../../assets/images/icon-multiple-actions-
15
15
import IconListQuill from "../../assets/images/icon-list-quill.svg" ;
16
16
import IconOfficeFileText from "../../assets/images/icon-office-file-text.svg" ;
17
17
import { postProject } from "services/teams" ;
18
+ import withAuthentication from "../../hoc/withAuthentication" ;
18
19
19
20
function CreateNewTeam ( ) {
20
21
const createProject = async ( ) => {
@@ -60,4 +61,4 @@ function CreateNewTeam() {
60
61
) ;
61
62
}
62
63
63
- export default CreateNewTeam ;
64
+ export default withAuthentication ( CreateNewTeam ) ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import SearchCard from "./components/SearchCard";
21
21
import ResultCard from "./components/ResultCard" ;
22
22
import { createJob } from "services/jobs" ;
23
23
import AddAnotherModal from "./components/AddAnotherModal" ;
24
+ import withAuthentication from "../../hoc/withAuthentication" ;
24
25
25
26
function InputSkills ( { projectId } ) {
26
27
const [ selectedSkills , setSelectedSkills ] = useState ( [ ] ) ;
@@ -123,4 +124,4 @@ InputSkills.propTypes = {
123
124
projectId : PT . string ,
124
125
} ;
125
126
126
- export default InputSkills ;
127
+ export default withAuthentication ( InputSkills ) ;
You can’t perform that action at this time.
0 commit comments