Add SKU edit actions
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m18s

This commit is contained in:
Cauê Faleiros
2026-07-14 10:18:04 -03:00
parent 060b4da907
commit bc05fb4504
6 changed files with 196 additions and 61 deletions

14
src/catalogLinks.ts Normal file
View File

@@ -0,0 +1,14 @@
type SkuEditParams = {
sku: string;
name?: string;
color?: string;
size?: string;
};
export const buildSkuEditPath = ({ sku, name = '', color = '', size = '' }: SkuEditParams) => {
const params = new URLSearchParams({ tab: 'products', sku });
if (name) params.set('name', name);
if (color) params.set('color', color);
if (size) params.set('size', size);
return `/registrations?${params.toString()}`;
};