Commit add63687 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[DocsTable] totalRecords fix

This is passed in props.
parent 9f8bdd93
...@@ -271,7 +271,7 @@ renderPage (_ /\ setTableParams) p res = R.createElement el p [] ...@@ -271,7 +271,7 @@ renderPage (_ /\ setTableParams) p res = R.createElement el p []
corpusDocument (Just corpusId) = Router.CorpusDocument corpusId corpusDocument (Just corpusId) = Router.CorpusDocument corpusId
corpusDocument _ = Router.Document corpusDocument _ = Router.Document
cpt {nodeId, corpusId, listId} _children = do cpt {nodeId, corpusId, listId, totalRecords} _children = do
localCategories <- R.useState' (mempty :: LocalCategories) localCategories <- R.useState' (mempty :: LocalCategories)
pure $ R2.buff $ T.tableElt pure $ R2.buff $ T.tableElt
...@@ -287,8 +287,7 @@ renderPage (_ /\ setTableParams) p res = R.createElement el p [] ...@@ -287,8 +287,7 @@ renderPage (_ /\ setTableParams) p res = R.createElement el p []
, "Title" , "Title"
, "Source" , "Source"
] ]
-- , totalRecords , totalRecords
, totalRecords: 1000 -- TODO
} }
where where
getCategory (localCategories /\ _) {_id, category} = maybe category identity (localCategories ^. at _id) getCategory (localCategories /\ _) {_id, category} = maybe category identity (localCategories ^. at _id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment