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
b50c7b4a
Commit
b50c7b4a
authored
Mar 17, 2024
by
Venkaiah Naidu Singamchetty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
viewreportee route issue cleared
parent
7d8342d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.jsx
src/components/table/index.jsx
+1
-1
index.jsx
src/pages/reports/index.jsx
+2
-2
No files found.
src/components/table/index.jsx
View file @
b50c7b4a
...
@@ -18,7 +18,7 @@ function Table({headers, data,loading, maxHeight}) {
...
@@ -18,7 +18,7 @@ function Table({headers, data,loading, maxHeight}) {
<
tbody
>
<
tbody
>
{
{
data
?.
map
((
item
,
index
)
=>
(
data
?.
map
((
item
,
index
)
=>
(
<
tr
className=
"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
>
<
tr
className=
"bg-white dark:bg-gray-800 dark:border-gray-700
dark:text-white
hover:bg-gray-50 dark:hover:bg-gray-600"
>
{
{
headers
?.
map
(({
render
,
id
})
=>
(
headers
?.
map
(({
render
,
id
})
=>
(
<
td
className=
"px-6 py-4 listData"
>
{
render
?
render
(
item
[
id
])
:
item
[
id
]
===
""
?
"NA"
:
item
[
id
]
}
</
td
>
<
td
className=
"px-6 py-4 listData"
>
{
render
?
render
(
item
[
id
])
:
item
[
id
]
===
""
?
"NA"
:
item
[
id
]
}
</
td
>
...
...
src/pages/reports/index.jsx
View file @
b50c7b4a
...
@@ -99,11 +99,11 @@ function Reports() {
...
@@ -99,11 +99,11 @@ function Reports() {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
user
){
if
(
user
){
navigate
(
"/dashboard"
)
navigate
(
`/viewreportee/
${
id
}
`
)
}
else
{
}
else
{
navigate
(
"/"
)
navigate
(
"/"
)
}
}
},
[
user
]);
},
[
user
,
id
]);
return
(
return
(
<
div
className=
"p-4"
>
<
div
className=
"p-4"
>
...
...
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