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
ff4a7580
Commit
ff4a7580
authored
Oct 14, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the menu link
parent
45ff0edc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
index.tsx
src/components/organism/Table/index.tsx
+6
-1
TransactionTable.tsx
...dashboard/adminDashboard/transaction/TransactionTable.tsx
+4
-1
No files found.
src/components/organism/Table/index.tsx
View file @
ff4a7580
...
@@ -60,7 +60,10 @@ export default function CustomTable<TData>({ table, loading = false,
...
@@ -60,7 +60,10 @@ export default function CustomTable<TData>({ table, loading = false,
</
tr
>
</
tr
>
)
:
(
)
:
(
table
.
getRowModel
().
rows
.
map
((
row
)
=>
(
table
.
getRowModel
().
rows
.
map
((
row
)
=>
(
<
tr
key=
{
row
.
id
}
className=
""
>
<
tr
key=
{
row
.
id
}
className=
{
`${row.getIsSelected()
? "bg-[#F3F8FF] hover:bg-[#E7F0FF]"
: "hover:bg-gray-50"
}`
}
>
{
row
.
getVisibleCells
().
map
((
cell
)
=>
(
{
row
.
getVisibleCells
().
map
((
cell
)
=>
(
<
td
key=
{
cell
.
id
}
className=
"px-4 py-4 text-[12px] text-title "
>
<
td
key=
{
cell
.
id
}
className=
"px-4 py-4 text-[12px] text-title "
>
{
flexRender
(
{
flexRender
(
...
@@ -81,6 +84,7 @@ export default function CustomTable<TData>({ table, loading = false,
...
@@ -81,6 +84,7 @@ export default function CustomTable<TData>({ table, loading = false,
}
}
return
(
return
(
<
div
className=
"max-w-full overflow-x-auto"
>
<
table
className=
"min-w-full text-left border-separate border-spacing-y-1 user_table"
>
<
table
className=
"min-w-full text-left border-separate border-spacing-y-1 user_table"
>
<
thead
>
<
thead
>
{
table
.
getHeaderGroups
().
map
((
headerGroup
)
=>
(
{
table
.
getHeaderGroups
().
map
((
headerGroup
)
=>
(
...
@@ -137,5 +141,6 @@ export default function CustomTable<TData>({ table, loading = false,
...
@@ -137,5 +141,6 @@ export default function CustomTable<TData>({ table, loading = false,
)
}
)
}
</
tbody
>
</
tbody
>
</
table
>
</
table
>
</
div
>
)
)
}
}
src/components/pages/dashboard/adminDashboard/transaction/TransactionTable.tsx
View file @
ff4a7580
...
@@ -21,7 +21,7 @@ export default function TransactionTable({ user_id, game_id, search, setSearch }
...
@@ -21,7 +21,7 @@ export default function TransactionTable({ user_id, game_id, search, setSearch }
const
[
sorting
,
setSorting
]
=
useState
<
{
id
:
string
;
desc
:
boolean
}[]
>
([]);
const
[
sorting
,
setSorting
]
=
useState
<
{
id
:
string
;
desc
:
boolean
}[]
>
([]);
const
[
page
,
setPage
]
=
useState
(
1
);
const
[
page
,
setPage
]
=
useState
(
1
);
const
[
pageSize
,
setPageSize
]
=
useState
(
10
);
const
[
pageSize
,
setPageSize
]
=
useState
(
10
);
const
[
rowSelection
,
setRowSelection
]
=
useState
({});
const
queryArgs
=
useMemo
(
const
queryArgs
=
useMemo
(
()
=>
({
()
=>
({
page
,
page
,
...
@@ -135,12 +135,15 @@ export default function TransactionTable({ user_id, game_id, search, setSearch }
...
@@ -135,12 +135,15 @@ export default function TransactionTable({ user_id, game_id, search, setSearch }
data
:
tableData
,
data
:
tableData
,
columns
,
columns
,
state
:
{
sorting
},
state
:
{
sorting
},
// enableRowSelection: true,
onSortingChange
:
setSorting
,
onSortingChange
:
setSorting
,
getCoreRowModel
:
getCoreRowModel
(),
getCoreRowModel
:
getCoreRowModel
(),
getPaginationRowModel
:
getPaginationRowModel
(),
getPaginationRowModel
:
getPaginationRowModel
(),
getSortedRowModel
:
getSortedRowModel
(),
getSortedRowModel
:
getSortedRowModel
(),
// onRowSelectionChange: setRowSelection,
});
});
return
(
return
(
<
div
className=
"border-gray border-solid border-[1px] rounded-[8px] lg:rounded-[16px]"
>
<
div
className=
"border-gray border-solid border-[1px] rounded-[8px] lg:rounded-[16px]"
>
<
TableHeader
search=
{
search
}
setSearch=
{
setSearch
&&
setSearch
}
onDownloadCSV=
{
()
=>
{
}
}
/>
<
TableHeader
search=
{
search
}
setSearch=
{
setSearch
&&
setSearch
}
onDownloadCSV=
{
()
=>
{
}
}
/>
...
...
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