Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
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
Arjun Jhukal
sweepstake
Commits
62d7cb6a
Commit
62d7cb6a
authored
Oct 29, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the getInitials to get initial of user name if first_name and last name doesnt exist
parent
f8202c1e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
TableHeader.tsx
src/components/molecules/TableHeader.tsx
+3
-0
LatestRegisteredPlayer.tsx
...shboard/adminDashboard/players/LatestRegisteredPlayer.tsx
+1
-1
index.tsx
...mponents/pages/dashboard/adminDashboard/players/index.tsx
+1
-1
No files found.
src/components/molecules/TableHeader.tsx
View file @
62d7cb6a
...
@@ -140,6 +140,8 @@ export default function TableHeader({
...
@@ -140,6 +140,8 @@ export default function TableHeader({
)
}
)
}
{
/* <Filter /> */
}
{
/* <Filter /> */
}
{
customRange
?
(
<>
<
Button
<
Button
startIcon=
{
!
downMD
&&
<
ArrowDown
size=
{
16
}
/>
}
startIcon=
{
!
downMD
&&
<
ArrowDown
size=
{
16
}
/>
}
onClick=
{
()
=>
setShowCustomRangeModal
(
true
)
}
onClick=
{
()
=>
setShowCustomRangeModal
(
true
)
}
...
@@ -179,6 +181,7 @@ export default function TableHeader({
...
@@ -179,6 +181,7 @@ export default function TableHeader({
/>
/>
</
DialogContent
>
</
DialogContent
>
</
Dialog
>
</
Dialog
>
</>)
:
""
}
{
/* Download Button */
}
{
/* Download Button */
}
{
onDownloadCSV
&&
<
Button
{
onDownloadCSV
&&
<
Button
...
...
src/components/pages/dashboard/adminDashboard/players/LatestRegisteredPlayer.tsx
View file @
62d7cb6a
...
@@ -26,7 +26,7 @@ export default function LatestRegisteredPlayer() {
...
@@ -26,7 +26,7 @@ export default function LatestRegisteredPlayer() {
header
:
"Name"
,
header
:
"Name"
,
cell
:
({
row
})
=>
{
cell
:
({
row
})
=>
{
const
{
first_name
,
last_name
,
name
}
=
row
.
original
;
const
{
first_name
,
last_name
,
name
}
=
row
.
original
;
const
initials
=
getInitials
(
first_name
,
last_name
);
const
initials
=
getInitials
(
first_name
,
last_name
)
||
getInitials
(
row
.
original
.
name
)
;
return
(
return
(
<
Box
className=
"flex justify-start items-center gap-2"
>
<
Box
className=
"flex justify-start items-center gap-2"
>
...
...
src/components/pages/dashboard/adminDashboard/players/index.tsx
View file @
62d7cb6a
...
@@ -89,7 +89,7 @@ export default function PlayerListing() {
...
@@ -89,7 +89,7 @@ export default function PlayerListing() {
header
:
"Name"
,
header
:
"Name"
,
cell
:
({
row
})
=>
{
cell
:
({
row
})
=>
{
const
{
first_name
,
last_name
,
name
}
=
row
.
original
;
const
{
first_name
,
last_name
,
name
}
=
row
.
original
;
const
initials
=
getInitials
(
first_name
,
last_name
);
const
initials
=
getInitials
(
first_name
,
last_name
)
||
getInitials
(
row
.
original
.
name
)
;
return
(
return
(
<
Box
className=
"flex justify-start items-center gap-2"
>
<
Box
className=
"flex justify-start items-center gap-2"
>
...
...
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