Skip to content

Commit

Permalink
fix: Improve dynamic class generation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabryscript committed Feb 9, 2024
1 parent 3229e7c commit f8b9311
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/renderer/components/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ function ProjectCard({ project }: { project: ProjectFile }) {
{({ active }) => (
<button
type="button"
className={`${
active ? 'bg-blue-400 text-white' : 'text-gray-100'
} group flex gap-2 w-full items-center rounded-md px-2 py-2 text-sm transition-colors`}
className={classNames(
`group flex gap-2 w-full items-center text-gray-100 rounded-md px-2 py-2 text-sm transition-colors`,
{ 'bg-blue-400 text-white': active },
)}
>
<Trash className="h-5 w-5" />
Cancella
Expand Down

0 comments on commit f8b9311

Please sign in to comment.