rearrange sub cols
This commit is contained in:
parent
57cc55f414
commit
aec413ba7a
|
@ -11,6 +11,26 @@ const columnHelper = createColumnHelper<SubComplete>()
|
||||||
|
|
||||||
export const columns: ColumnDef<SubComplete>[] = [
|
export const columns: ColumnDef<SubComplete>[] = [
|
||||||
selectCol,
|
selectCol,
|
||||||
|
{
|
||||||
|
accessorFn: row => {
|
||||||
|
if (row.story) {
|
||||||
|
return row.story.title
|
||||||
|
}
|
||||||
|
return "RECORD DELETED"
|
||||||
|
},
|
||||||
|
id: "story",
|
||||||
|
header: "Story"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
accessorFn: row => {
|
||||||
|
if (row.pub) {
|
||||||
|
return row.pub.title
|
||||||
|
}
|
||||||
|
return "RECORD DELETED"
|
||||||
|
},
|
||||||
|
id: "pub",
|
||||||
|
header: "Publication"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
accessorFn: row => new Date(row.submitted),
|
accessorFn: row => new Date(row.submitted),
|
||||||
id: "submitted",
|
id: "submitted",
|
||||||
|
@ -57,26 +77,6 @@ export const columns: ColumnDef<SubComplete>[] = [
|
||||||
id: "response",
|
id: "response",
|
||||||
header: "Response"
|
header: "Response"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
accessorFn: row => {
|
|
||||||
if (row.pub) {
|
|
||||||
return row.pub.title
|
|
||||||
}
|
|
||||||
return "RECORD DELETED"
|
|
||||||
},
|
|
||||||
id: "pub",
|
|
||||||
header: "Publication"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
accessorFn: row => {
|
|
||||||
if (row.story) {
|
|
||||||
return row.story.title
|
|
||||||
}
|
|
||||||
return "RECORD DELETED"
|
|
||||||
},
|
|
||||||
id: "story",
|
|
||||||
header: "Story"
|
|
||||||
},
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -959,14 +959,6 @@ body {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.w-8 {
|
|
||||||
width: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.w-16 {
|
|
||||||
width: 4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.min-w-\[8rem\] {
|
.min-w-\[8rem\] {
|
||||||
min-width: 8rem;
|
min-width: 8rem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue