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
ce341eba
Commit
ce341eba
authored
Mar 20, 2024
by
Venkaiah Naidu Singamchetty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tooltip added
parent
7d693d05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
index.jsx
src/components/accordion/index.jsx
+5
-5
index.jsx
src/components/table/index.jsx
+1
-1
No files found.
src/components/accordion/index.jsx
View file @
ce341eba
...
...
@@ -40,11 +40,11 @@ function Accordion({ title, data ,handleAddActivity,open,handleAccordian}) {
handleAccordian
(
title
)
}
const
headers
=
[
{
title
:
"Activity Name"
,
id
:
"aName"
,
width
:
"25%"
},
{
title
:
"Date"
,
id
:
"recorded_date"
,
width
:
"20%"
,
render
:
(
value
)
=>
moment
(
value
).
format
(
'DD-MM-YYYY'
)
},
{
title
:
"Rated By"
,
id
:
"ratedBy"
,
width
:
"25%"
},
{
title
:
"Score"
,
id
:
"score"
,
width
:
"10%"
,
render
:
(
value
)
=>
<
div
className=
"w-[35px]
bg-blue-400 rounded-full text-white font-bold text-center p-[4px]"
>
{
value
}
</
div
>
},
{
title
:
"Comments"
,
id
:
"comments"
,
width
:
"30%"
},
{
title
:
"Activity Name"
,
id
:
"aName"
},
{
title
:
"Date"
,
id
:
"recorded_date"
,
render
:
(
value
)
=>
moment
(
value
).
format
(
'DD-MM-YYYY'
)
},
{
title
:
"Rated By"
,
id
:
"ratedBy"
},
{
title
:
"Score"
,
id
:
"score"
,
render
:
(
value
)
=>
<
div
className=
"w-[35px] px-3
bg-blue-400 rounded-full text-white font-bold text-center p-[4px]"
>
{
value
}
</
div
>
},
{
title
:
"Comments"
,
id
:
"comments"
,
render
:(
value
)
=>
<
span
className=
"listData"
title=
{
value
}
>
{
value
}
</
span
>
},
];
if
(
loading
&&
title
==
"Duties"
)
return
<
Loading
/>
...
...
src/components/table/index.jsx
View file @
ce341eba
...
...
@@ -24,7 +24,7 @@ function Table({headers, data,loading, maxHeight}) {
{
headers
?.
map
(({
render
,
id
})
=>
(
<
td
key=
{
`${item.id}_${id}`
}
className=
"px-6 py-2 "
>
<
span
title=
{
(
id
==
"comments"
)?
item
[
id
]:
null
}
className=
"listData"
>
{
render
?
render
(
item
[
id
])
:
item
[
id
]
===
""
?
"NA"
:
item
[
id
]
}
</
span
>
{
render
?
render
(
item
[
id
])
:
item
[
id
]
===
""
?
"NA"
:
item
[
id
]
}
</
td
>
))
}
...
...
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