Use non-breaking space

In some cases during development or after building, "{' '}" appears. It's better to use the HTML entity   instead.
This commit is contained in:
Marc Wolf
2023-03-15 19:51:16 +01:00
committed by GitHub
parent f43e0952c4
commit a235a5a040

View File

@ -52,7 +52,7 @@ const {
<a class="btn btn-primary sm:mb-0 w-full" href={callToAction?.href} target="_blank" rel="noopener"> <a class="btn btn-primary sm:mb-0 w-full" href={callToAction?.href} target="_blank" rel="noopener">
{callToAction?.icon && ( {callToAction?.icon && (
<> <>
<Icon name={callToAction.icon} class="w-5 h-5 mr-1 -ml-1.5" />{' '} <Icon name={callToAction.icon} class="w-5 h-5 mr-1 -ml-1.5" />&nbsp;
</> </>
)} )}
{callToAction?.text} {callToAction?.text}
@ -70,7 +70,7 @@ const {
<a class="btn w-full" href={callToAction2?.href}> <a class="btn w-full" href={callToAction2?.href}>
{callToAction2?.icon && ( {callToAction2?.icon && (
<> <>
<Icon name={callToAction2.icon} class="w-5 h-5 mr-1 -ml-1.5" />{' '} <Icon name={callToAction2.icon} class="w-5 h-5 mr-1 -ml-1.5" />&nbsp;
</> </>
)} )}
{callToAction2.text} {callToAction2.text}