Todo table scroll, clickable columns now stored in server

This commit is contained in:
mrfry 2020-11-28 15:09:17 +01:00
parent 50e8fd271a
commit c68a445117
3 changed files with 19 additions and 4 deletions

View file

@ -53,7 +53,7 @@ export default function TodoTable() {
}
return (
<div>
<div className={styles.tableContainer}>
<div className={styles.table}>
{Object.keys(columns).map((key) => {
const category = columns[key]
@ -70,6 +70,16 @@ export default function TodoTable() {
userId={userId}
categories={categories}
onClick={onCardClick}
clickableTypes={Object.keys(columns).reduce(
(acc, key) => {
const col = columns[key]
if (col.clickable) {
acc.push(key)
}
return acc
},
[]
)}
/>
)
} else {