update: better naming.

This commit is contained in:
ItzNotABug
2024-07-15 14:04:40 +05:30
parent f0ebe19bdd
commit 0cc575d52b
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ export type SocialShareOption = {
type: 'link' | 'copy'; type: 'link' | 'copy';
}; };
export const sharingOptions: Array<SocialShareOption> = [ export const socialSharingOptions: Array<SocialShareOption> = [
{ {
icon: 'web-icon-x', icon: 'web-icon-x',
label: 'Twitter', label: 'Twitter',

View File

@@ -8,7 +8,7 @@
import type { AuthorData, CategoryData, PostsData } from '$routes/blog/content'; import type { AuthorData, CategoryData, PostsData } from '$routes/blog/content';
import { BLOG_TITLE_SUFFIX } from '$routes/titles'; import { BLOG_TITLE_SUFFIX } from '$routes/titles';
import { getContext } from 'svelte'; import { getContext } from 'svelte';
import { type SocialShareOption, sharingOptions } from '$lib/constants'; import { type SocialShareOption, socialSharingOptions } from '$lib/constants';
import { copy } from '$lib/utils/copy'; import { copy } from '$lib/utils/copy';
import { page } from '$app/stores'; import { page } from '$app/stores';
@@ -193,7 +193,7 @@
</span> </span>
<ul class="u-flex u-gap-8"> <ul class="u-flex u-gap-8">
{#each sharingOptions as sharingOption} {#each socialSharingOptions as sharingOption}
<li class="share-list-item"> <li class="share-list-item">
<Tooltip placement="bottom" disableHoverableContent={true}> <Tooltip placement="bottom" disableHoverableContent={true}>
<button <button