mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 21:07:46 +00:00
update: better naming.
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user