chore: revamp the API tokens workflow (#2880)
* chore: added getLayout method to api tokens pages * revamp: api tokens workflow * chore: add title validation and update types * chore: minor UI updates * chore: update route
This commit is contained in:
parent
7b5eea8722
commit
7ad0360920
25 changed files with 711 additions and 747 deletions
|
|
@ -37,11 +37,13 @@ export const RecentPagesList: FC = observer(() => {
|
|||
{Object.keys(recentProjectPages).length > 0 && !isEmpty ? (
|
||||
<>
|
||||
{Object.keys(recentProjectPages).map((key) => {
|
||||
if (recentProjectPages[key].length === 0) return null;
|
||||
if (recentProjectPages[key]?.length === 0) return null;
|
||||
|
||||
return (
|
||||
<div key={key} className="overflow-hidden">
|
||||
<h2 className="text-xl font-semibold capitalize mb-2">{replaceUnderscoreIfSnakeCase(key)}</h2>
|
||||
<div key={key}>
|
||||
<h2 className="sticky top-0 bg-custom-background-100 z-[1] 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