From 9ff67af9f2c394222d2155c3307cd76eef6cee7f Mon Sep 17 00:00:00 2001 From: XlebyllleK <96723939+XlebyllleK@users.noreply.github.com> Date: Sat, 11 Jan 2025 23:08:04 +0200 Subject: [PATCH] Sort packages alphabetically --- src/components/PackageList.tsx | 46 ++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/src/components/PackageList.tsx b/src/components/PackageList.tsx index 4eabb04..15f64d8 100644 --- a/src/components/PackageList.tsx +++ b/src/components/PackageList.tsx @@ -2,28 +2,36 @@ import { JSX } from 'react'; -import { Package } from '../types'; -import { PackageCard } from './PackageCard'; +import { + Package +} from '../types'; + +import { + PackageCard +} from './PackageCard'; interface PackageListProps { - packages: Package[]; - loading: boolean; + packages: Package[]; + loading: boolean; } -export function PackageList({ packages, loading }: PackageListProps): JSX.Element { - if (loading) { - return ( -