Skip to content

Commit

Permalink
Fixes/description of the subcategory (#1690)
Browse files Browse the repository at this point in the history
* fix tailwind/( two times used `bottom-0`)

* fix:Description of the subcategory
  • Loading branch information
rahulpandey70 authored Sep 24, 2023
1 parent 1b6d4e8 commit 81f11a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/TopBar/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const TopBar: FC<TopBarProps> = ({ className }) => {
}

const handleCardClick: () => void = () => {
const description = categoryDescriptions[categoryName] || ''
const description = categoryDescriptions[subcategoryName] || ''
const categoryInfo = {
name: categoryName,
description,
Expand All @@ -58,7 +58,7 @@ export const TopBar: FC<TopBarProps> = ({ className }) => {
const removeCurrentCard: () => void = () => {
setCurrentCategory(null)
}

return (
<>
{subcategoryName && (
Expand Down
3 changes: 1 addition & 2 deletions components/popup/popupInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const PopupInfo: React.FC<{
href={currentCard?.url}
target="_blank"
rel="noreferrer"
className="mt-2 px-6 py-2 text-white text-center bg-theme-secondary rounded-2xl w-full hover:bg-transparent hover:text-theme-secondary border border-dashed border-transparent duration-100 hover:border-theme-primary bottom-0 flex items-center justify-center bottom-0 relative"
className="mt-2 px-6 py-2 text-white text-center bg-theme-secondary rounded-2xl w-full hover:bg-transparent hover:text-theme-secondary border border-dashed border-transparent duration-100 hover:border-theme-primary flex items-center justify-center bottom-0 relative"
>
Visit site
</a>
Expand All @@ -82,4 +82,3 @@ export const PopupInfo: React.FC<{
</>
)
}

1 comment on commit 81f11a3

@vercel
Copy link

@vercel vercel bot commented on 81f11a3 Sep 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.