Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit 865b4ae

Browse files
author
Diogo Soares
committed
make table non sortable
1 parent ca494ff commit 865b4ae

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/routes/safe/components/Settings/Delegates/columns.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const generateColumns = (): Array<DelegatesTableColumn> => {
2222
width: 170,
2323
custom: false,
2424
align: 'left',
25+
static: true,
2526
}
2627

2728
const delegatorColumn = {
@@ -30,18 +31,21 @@ export const generateColumns = (): Array<DelegatesTableColumn> => {
3031
width: 170,
3132
custom: false,
3233
align: 'left',
34+
static: true,
3335
}
3436

3537
const labelColumn = {
3638
id: DELEGATE_LABEL_ID,
3739
label: 'Label',
3840
custom: false,
41+
static: true,
3942
}
4043

4144
const actionsColumn = {
4245
id: ACTIONS_ID,
4346
label: '',
4447
custom: true,
48+
static: true,
4549
}
4650

4751
return [delegateColumn, delegatorColumn, labelColumn, actionsColumn]

src/routes/safe/components/Settings/Delegates/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,14 @@ const Delegates = (): ReactElement => {
184184
</ButtonLink>
185185
<pre>{JSON.stringify(delegatesList, undefined, 2)}</pre>
186186
<TableContainer>
187-
<Table columns={columns} data={delegatesList} defaultFixed disableLoadingOnEmptyTable disablePagination>
187+
<Table
188+
columns={columns}
189+
data={delegatesList}
190+
noBorder
191+
defaultFixed
192+
disableLoadingOnEmptyTable
193+
disablePagination
194+
>
188195
{(data) =>
189196
data.map((row, index) => {
190197
const hideBorderBottom = index >= 3 && index === data.size - 1 && classes.noBorderBottom

0 commit comments

Comments
 (0)