fix: complete pages editor not clickable, recent pages calculation logic (#2820)
* fix: whole editor not clickable * fix: recent pages calculation * chore: update older pages calculation logic in recent pages list * fix: archived pages computed function * chore: add type for older pages
This commit is contained in:
parent
aea9a40a73
commit
7200cbf58e
8 changed files with 89 additions and 56 deletions
|
|
@ -38,8 +38,9 @@ export const RecentPagesList: FC = observer(() => {
|
|||
<>
|
||||
{Object.keys(recentProjectPages).map((key) => {
|
||||
if (recentProjectPages[key].length === 0) return null;
|
||||
|
||||
return (
|
||||
<div key={key} className="h-full overflow-hidden pb-9">
|
||||
<div key={key} className="overflow-hidden">
|
||||
<h2 className="text-xl font-semibold capitalize mb-2">{replaceUnderscoreIfSnakeCase(key)}</h2>
|
||||
<PagesListView pages={recentProjectPages[key]} />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue