Barcode workflow
This commit is contained in:
@@ -209,10 +209,10 @@ END:VCARD`;
|
||||
</div>
|
||||
)}
|
||||
<div id={`qr-svg-${qr.id}`} className={qr.style?.cornerStyle === 'rounded' ? 'rounded-lg overflow-hidden' : ''}>
|
||||
{qr.contentType === 'BARCODE' && qr.type === 'STATIC' ? (
|
||||
{qr.contentType === 'BARCODE' ? (
|
||||
<Barcode
|
||||
key={`${qr.content?.value}-${qr.content?.format}`}
|
||||
value={qr.content?.value || '123456789'}
|
||||
key={`${qr.id}-${qr.type === 'STATIC' ? qr.content?.value : qrUrl}-${qr.content?.format}`}
|
||||
value={qr.type === 'STATIC' ? (qr.content?.value || '123456789') : qrUrl}
|
||||
format={(qr.content?.format as any) || 'CODE128'}
|
||||
lineColor={qr.style?.foregroundColor || '#000000'}
|
||||
background={qr.style?.backgroundColor || '#FFFFFF'}
|
||||
|
||||
Reference in New Issue
Block a user