From 3630cbb6c986a0df8dfc2cc826a8682389c43969 Mon Sep 17 00:00:00 2001 From: Wesenberg Date: Sun, 12 Jan 2025 20:21:48 +0200 Subject: [PATCH] fix: replace inline prop types with interface for consistency --- plugins/blog/components/Share.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/blog/components/Share.tsx b/plugins/blog/components/Share.tsx index 77879f16..880cf714 100644 --- a/plugins/blog/components/Share.tsx +++ b/plugins/blog/components/Share.tsx @@ -4,13 +4,18 @@ import IconBrandLinkedin from "tabler_icons_tsx/brand-linkedin.tsx"; import IconBrandReddit from "tabler_icons_tsx/brand-reddit.tsx"; import IconBrandTwitter from "tabler_icons_tsx/brand-twitter.tsx"; +interface ShareProps { + url: URL; + title: string; +} + /** * Dynamically generates links for sharing the current content on the major * social media platforms. * * @see {@link https://schier.co/blog/pure-html-share-buttons} */ -export default function Share(props: { url: URL; title: string }) { +export default function Share(props: ShareProps) { return (
Share