forked from coracle/flotilla
Use new icons
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<script lang="ts">
|
||||
import {parse, isEmoji, renderAsHtml} from "@welshman/content"
|
||||
import Heart from "@assets/icons/heart-angle.svg?dataurl"
|
||||
import ThumbsDown from "@assets/icons/dislike.svg?dataurl"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
import ContentEmoji from "@app/components/ContentEmoji.svelte"
|
||||
|
||||
@@ -7,9 +9,9 @@
|
||||
</script>
|
||||
|
||||
{#if event.content === "+" || event.content === ""}
|
||||
<Icon icon="heart" />
|
||||
<Icon icon={Heart} />
|
||||
{:else if event.content === "-"}
|
||||
<Icon icon="thumbs-down" />
|
||||
<Icon icon={ThumbsDown} />
|
||||
{:else}
|
||||
{#each parse(event) as parsed}
|
||||
{#if isEmoji(parsed)}
|
||||
|
||||
Reference in New Issue
Block a user