Format with prettier

This commit is contained in:
prototypa
2022-11-07 14:10:21 -05:00
parent 5d0cee673a
commit 7d8319d13a
5 changed files with 18 additions and 12 deletions

View File

@ -1,11 +1,13 @@
---
import { Icon } from 'astro-icon';
const { text, url, class: className = "inline-block" } = Astro.props;
const { text, url, class: className = 'inline-block' } = Astro.props;
---
<div class={className}>
<span class="align-super font-bold">Share:</span>
<button class="ml-2" data-aw-social-share="facebook" data-aw-url={url}><Icon name="logos:facebook" class="w-6 h-6" /></button>
<span class="align-super font-bold">Share:</span>
<button class="ml-2" data-aw-social-share="facebook" data-aw-url={url}
><Icon name="logos:facebook" class="w-6 h-6" />
</button>
<button class="ml-2" data-aw-social-share="twitter" data-aw-url={url} data-aw-text={text}
><Icon name="logos:twitter" class="w-6 h-6" />
</button>