sort compare packages modal analyses by title

This commit is contained in:
2025-09-09 00:08:57 +03:00
parent 0e063cd5dc
commit 5b91ece1ec
3 changed files with 8 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ const ComparePackagesModal = async ({
return ( return (
<TableRow key={id}> <TableRow key={id}>
<TableCell className="py-6"> <TableCell className="py-6 sm:max-w-[30vw]">
{title}{' '} {title}{' '}
{description && (<InfoTooltip content={description} icon={<QuestionMarkCircledIcon />} />)} {description && (<InfoTooltip content={description} icon={<QuestionMarkCircledIcon />} />)}
</TableCell> </TableCell>

View File

@@ -70,6 +70,7 @@ async function analysisPackageElementsLoader({
queryParams: { queryParams: {
id: analysisElementMedusaProductIds, id: analysisElementMedusaProductIds,
limit: 100, limit: 100,
order: "title",
}, },
}); });

View File

@@ -14,7 +14,12 @@ export const listProducts = async ({
regionId, regionId,
}: { }: {
pageParam?: number pageParam?: number
queryParams?: HttpTypes.FindParams & HttpTypes.StoreProductParams & { "type_id[0]"?: string; id?: string[], category_id?: string } queryParams?: HttpTypes.FindParams & HttpTypes.StoreProductParams & {
"type_id[0]"?: string;
id?: string[],
category_id?: string;
order?: 'title';
}
countryCode?: string countryCode?: string
regionId?: string regionId?: string
}): Promise<{ }): Promise<{