Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhanasand committed Feb 18, 2025
1 parent 4bbef4a commit 1cf32b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/src/components/addPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ function Package({pkg, setPackages, packages, list}: PackageProps) {

return (
<li className="flex flex-col bg-background p-4 my-2 rounded-md shadow-sm border border-blue-500">
{editing && <Edit pkg={pkg} setEditing={setEditing} />}
{editing && <Edit
pkg={pkg}
setEditing={setEditing}
list={list}
packages={packages}
setPackages={setPackages}
/>}
<div className="text-lg text-foreground flex justify-between">
<h1 className="text-sm text-foreground font-semibold">
{pkg.name} ({pkg.versions})
Expand Down

0 comments on commit 1cf32b1

Please sign in to comment.