Add custom color picker, move website link to store items, and fix sidebar logo aspect.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
592540cc7e
commit
00f2e0f729
@@ -36,6 +36,10 @@ export function mapApiVariationToUi(item: CategoryVariationApi): Variation {
|
||||
name: item.name,
|
||||
type: item.type,
|
||||
values: item.values,
|
||||
colorHexes:
|
||||
item.type === 'color'
|
||||
? item.options.map((option) => option.colorHex)
|
||||
: undefined,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,6 +81,9 @@ export async function saveCategoryVariations(
|
||||
type: variation.type,
|
||||
name: variation.name,
|
||||
values: variation.values,
|
||||
...(variation.type === 'color' && variation.colorHexes
|
||||
? { colorHexes: variation.colorHexes }
|
||||
: {}),
|
||||
})),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user