chore: typ pre renderStoresHtml
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ea2a9d85d0
commit
ffba0e0842
1 file changed
+1
-1
@@ -714,7 +714,7 @@ function renderStackedImageRow(p: ProductItem, imgHtml: string, cellStyle: strin
|
||||
}
|
||||
|
||||
// Štítky dostupnosti v predajniach (Potraviny / Supermarket / Tempo); prázdne, ak nie je zvolená žiadna
|
||||
function renderStoresHtml(p: any): string {
|
||||
function renderStoresHtml(p: { stores?: Partial<ProductItem["stores"]> }): string {
|
||||
const tag = (color: string, file: string, alt: string) =>
|
||||
`<tr><td align="right" style="line-height: 0;"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="right"><tr><td style="border: 0; background-color: ${color}; padding: 0; line-height: 0;"><img src="${SUPABASE_ASSETS_BASE}${file}" height="10" alt="${alt}" style="display: block; height: 10px; width: auto; border: 0;"></td></tr></table></td></tr>`;
|
||||
const rows = [
|
||||
|
||||
Reference in new issue
Block a user