Skip to content

Commit 1244d30

Browse files
Merge pull request #127 from mindfiredigital/dev
Fix modal
2 parents a34ff60 + 602a1d9 commit 1244d30

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/packages/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const Stats = () => {
3636
});
3737
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3838
const [packages, setPackages] = useState(statsList);
39-
// const [allPackage, setAllPackage] = useState(packageList);
4039

4140
function closeModal() {
4241
setIsOpen(false);
@@ -45,7 +44,7 @@ const Stats = () => {
4544

4645
useEffect(() => {
4746
if (npmPackage) {
48-
setCount(npmPackage.total); // Open the modal when npmPackage is updated
47+
setCount(npmPackage.total); //update total count when npmPackage is updated
4948
}
5049
}, [npmPackage]);
5150

@@ -371,7 +370,7 @@ const Stats = () => {
371370
className='h-6 w-6'
372371
fill='none'
373372
viewBox='0 0 24 24'
374-
stroke='red'
373+
stroke='black'
375374
>
376375
<path
377376
strokeLinecap='round'

0 commit comments

Comments
 (0)