Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nisum-scorecard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Venkaiah Naidu Singamchetty
nisum-scorecard
Commits
8df78f13
Commit
8df78f13
authored
Mar 20, 2024
by
Venkaiah Naidu Singamchetty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
score refresh added
parent
4e23db22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
index.jsx
src/pages/viewReportee/index.jsx
+9
-3
No files found.
src/pages/viewReportee/index.jsx
View file @
8df78f13
...
...
@@ -3,7 +3,7 @@ import { useSelector, useDispatch } from "react-redux";
import
{
useParams
,
useNavigate
}
from
"react-router"
;
import
{
base_url
}
from
"../../utils/constants"
;
import
axios
from
'axios'
;
import
{
fetchReportees
}
from
"../../redux/reducers/reporteesSlice"
;
import
{
fetchReportees
,
setViewReportee
}
from
"../../redux/reducers/reporteesSlice"
;
import
{
fetchReporteeActivities
}
from
'../../redux/reducers/viewreporteeSlice'
import
Accordion
from
"../../components/accordion"
;
import
{
scoreColor
}
from
'../../utils/commonFunctions'
;
...
...
@@ -55,7 +55,7 @@ function Viewreportee() {
page
:
1
,
perPage
:
10
,
};
dispatch
(
fetchReportees
(
data
))
;
dispatch
(
fetchReportees
(
data
))
}
}
...
...
@@ -78,6 +78,12 @@ function Viewreportee() {
useEffect
(()
=>
{
if
(
reportees
.
length
>
0
&&
viewReportee
)
dispatch
(
fetchReporteeActivities
({
empId
:
viewReportee
.
empId
}))
},[
reportees
,
viewReportee
])
useEffect
(()
=>
{
if
(
reportees
.
length
){
dispatch
(
setViewReportee
(
viewReportee
.
empId
))
}
},[
reportees
])
...
...
@@ -91,7 +97,7 @@ function Viewreportee() {
}
},
[]);
if
(
viewReportee
&&
reportees
.
length
)
if
(
reportees
.
length
&&
viewReportee
)
return
(
<
div
className=
"p-4"
>
<
div
className=
"bg-white p-3 rounded-md"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment