summaryrefslogtreecommitdiff
path: root/examples/blog/src/components/LikeButton.tsx
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-07-12 16:20:08 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-07-12 16:20:08 +0000
commit0751be81e50f1867dd773731070e7301d5adc54b (patch)
tree8208f415a834c840a8ffd4e66d352af3924f1b80 /examples/blog/src/components/LikeButton.tsx
parentba67a924cab9a99b358cd9d730b9f618f4db5a7e (diff)
downloadastro-0751be81e50f1867dd773731070e7301d5adc54b.tar.gz
astro-0751be81e50f1867dd773731070e7301d5adc54b.tar.zst
astro-0751be81e50f1867dd773731070e7301d5adc54b.zip
Diffstat (limited to 'examples/blog/src/components/LikeButton.tsx')
-rw-r--r--examples/blog/src/components/LikeButton.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/blog/src/components/LikeButton.tsx b/examples/blog/src/components/LikeButton.tsx
index d477cee1e..23d8518de 100644
--- a/examples/blog/src/components/LikeButton.tsx
+++ b/examples/blog/src/components/LikeButton.tsx
@@ -1,4 +1,4 @@
-import { useState } from "preact/hooks";
+import { useState } from 'preact/hooks';
interface Props {
pageUrl: string;
@@ -26,7 +26,7 @@ export default function LikeButton({ pageUrl }: Props) {
>
{/* fill the heart when liked ♥ */}
<path
- fill={liked ? "red" : "#ccc"}
+ fill={liked ? 'red' : '#ccc'}
d="m12 21.35l-1.45-1.32C5.4 15.36 2 12.27 2 8.5C2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3C19.58 3 22 5.41 22 8.5c0 3.77-3.4 6.86-8.55 11.53L12 21.35Z"
></path>
</svg>