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
870c61ac
Commit
870c61ac
authored
Mar 15, 2024
by
Venkaiah Naidu Singamchetty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error-handling-added
parent
7fe4671d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
accordionTable.jsx
src/components/accordion/accordionTable.jsx
+1
-6
index.jsx
src/pages/reports/index.jsx
+1
-3
No files found.
src/components/accordion/accordionTable.jsx
View file @
870c61ac
import
React
from
"react"
;
import
moment
from
"moment"
;
function
AccordionTable
({
headers
,
data
})
{
function
AccordionTable
({
headers
,
data
})
{
const
getDate
=
(
utc
)
=>
{
// const utcDate = new Date(utc);
// const localTime = utcDate.toLocaleString();
// const someday = moment(utc);
return
moment
(
utc
).
format
(
'DD-MM-YYYY'
);
}
return
(
...
...
src/pages/reports/index.jsx
View file @
870c61ac
...
...
@@ -52,7 +52,7 @@ function Reports() {
}
useEffect
(()
=>
{
if
(
id
)
{
if
(
id
!==
undefined
||
null
)
{
const
emp
=
reportees
?.
filter
((
item
)
=>
item
.
empId
===
Number
(
id
));
setEmpDetails
(
emp
[
0
]);
const
data
=
{
...
...
@@ -67,8 +67,6 @@ function Reports() {
})
},[
id
]);
useEffect
(()
=>
{},[
reports
])
return
(
<
div
className=
"p-4"
>
<
div
className=
"flex bg-white p-3"
>
...
...
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