Skip to content

Commit

Permalink
Updated table display on WoW UploadTimers
Browse files Browse the repository at this point in the history
  • Loading branch information
krz0001 committed Jul 7, 2023
1 parent c4db655 commit e6ebbfa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 11 additions & 7 deletions app/routes/wow/upload-timers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,23 @@ export default Index

const columnList: Array<ColumnList<UploadTimersItem>> = [
{ columnId: 'dataSetID', header: 'Data Set ID' },
{ columnId: 'dataSetName', header: 'Data Set Name' },
{ columnId: 'lastUploadMinute', header: 'Last Upload Minute' },
{ columnId: 'lastUploadTimeRaw', header: 'Last Upload Time Raw' },
{ columnId: 'lastUploadUnix', header: 'Last Upload Unix' },
{ columnId: 'region', header: 'Region' },
{ columnId: 'tableName', header: 'Table Name' }
{
columnId: 'dataSetName',
header: 'Data Set Name',
accessor: ({ row }) => (
<p className="text-start">{row.dataSetName.join(', ')}</p>
)
}
]

const selectOptions = ['lastUploadMinute']
const selectOptions = ['dataSetID', 'lastUploadMinute', 'region', 'dataSetName']

const sortingOrder = [{ id: 'lastUploadMinute', desc: true }]
const sortingOrder = [{ id: 'dataSetID', desc: true }]

const mobileColumnList: Array<ColumnList<UploadTimersItem>> = [
{ columnId: 'dataSetName', header: 'Data Set Name' },
{ columnId: 'lastUploadMinute', header: 'Last Upload Minute' }
{ columnId: 'lastUploadMinute', header: 'Last Upload Minute' },
{ columnId: 'dataSetName', header: 'Data Set Name' }
]
4 changes: 4 additions & 0 deletions app/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -1956,6 +1956,10 @@ select {
text-align: center;
}

.text-start {
text-align: start;
}

.align-middle {
vertical-align: middle;
}
Expand Down

0 comments on commit e6ebbfa

Please sign in to comment.