[PE-248] regression: recent widgets refactor for scalability (#6456)
* fix: recent widgets types and filters * fix: recent widgets types
This commit is contained in:
parent
c429ca7b36
commit
b016ed78cf
3 changed files with 7 additions and 6 deletions
|
|
@ -24,7 +24,6 @@ const filters: { name: TRecentActivityFilterKeys; icon?: React.ReactNode }[] = [
|
|||
{ name: "all item" },
|
||||
{ name: "issue", icon: <LayersIcon className="flex-shrink-0 size-4" /> },
|
||||
{ name: "page", icon: <FileText className="flex-shrink-0 size-4" /> },
|
||||
{ name: "workspace_page", icon: <FileText className="flex-shrink-0 size-4" /> },
|
||||
{ name: "project", icon: <Briefcase className="flex-shrink-0 size-4" /> },
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -49,9 +49,11 @@ export const RecentPage = (props: BlockProps) => {
|
|||
)}
|
||||
</>
|
||||
</div>
|
||||
<div className="font-medium text-custom-sidebar-text-400 text-sm whitespace-nowrap">
|
||||
{pageDetails?.project_identifier}
|
||||
</div>
|
||||
{pageDetails?.project_identifier && (
|
||||
<div className="font-medium text-custom-sidebar-text-400 text-sm whitespace-nowrap">
|
||||
{pageDetails?.project_identifier}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="text-custom-text-200 font-medium text-sm whitespace-nowrap">{pageDetails?.name}</div>
|
||||
<div className="font-medium text-xs text-custom-text-400">{calculateTimeAgo(activity.visited_at)}</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue