Skip to content

Commit

Permalink
fix: highlights in archive tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekshourya29 committed Jun 18, 2024
1 parent fe3f69f commit 1996fa9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/core/components/archives/archive-tabs-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const ArchiveTabsList: FC = observer(() => {
// router
const { workspaceSlug, projectId } = useParams();
const pathname = usePathname();
const activeTab = pathname.split("/").pop();
// store hooks
const { getProjectById } = useProject();

Expand All @@ -28,7 +27,7 @@ export const ArchiveTabsList: FC = observer(() => {
<Link key={tab.key} href={`/${workspaceSlug}/projects/${projectId}/archives/${tab.key}`}>
<span
className={`flex min-w-min flex-shrink-0 whitespace-nowrap border-b-2 py-3 px-4 text-sm font-medium outline-none ${
tab.key === activeTab
pathname.includes(tab.key)
? "border-custom-primary-100 text-custom-primary-100"
: "border-transparent hover:border-custom-border-200 text-custom-text-300 hover:text-custom-text-400"
}`}
Expand Down

0 comments on commit 1996fa9

Please sign in to comment.