Skip to content

Commit

Permalink
Twitter renamed to X
Browse files Browse the repository at this point in the history
  • Loading branch information
itswadesh committed Nov 19, 2023
1 parent f53cb4f commit 781999f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export let image
export let timeToRead = 0
/*
* When there is an equivalent og tag present, Twitter takes that so check OpenGraph before
* When there is an equivalent og tag present, X takes that so check OpenGraph before
* adding additional tags, unless you want to override OpenGraph.
*/
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/SEO/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { authorInfo, WWW_URL, entity, ogLanguage, siteLanguage, siteShortTitle }
import OpenGraph from './OpenGraph.svelte'
import Product from './Product.svelte'
import SchemaOrg from './SchemaOrg.svelte'
import Twitter from './Twitter.svelte'
import X from './X.svelte'
import { page } from '$app/stores'
const {
author,
Expand Down Expand Up @@ -201,7 +201,7 @@ const productProps = {
<!-- <html lang="{siteLanguage}"></html> -->
</svelte:head>

<Twitter {...twitterProps} />
<X {...twitterProps} />

<Product {...productProps} />

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/SEO/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * as OpenGraph from './OpenGraph.svelte'
export * as SchemaOrg from './SchemaOrg.svelte'
export * as Product from './Product.svelte'
export * as Twitter from './Twitter.svelte'
export * as X from './X.svelte'
6 changes: 3 additions & 3 deletions src/lib/components/SocialSharingButtons.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
LinkedIn,
Pinterest,
Telegram,
Twitter,
X,
WhatsApp
} from 'svelte-share-buttons-component'
import { toast } from '$lib/utils'
Expand Down Expand Up @@ -45,7 +45,7 @@ let socialSharesList = [
},
{
icon: twitterIcon,
title: 'Twitter',
title: 'X',
href: `https://twitter.com/intent/tweet/?text=${productName}&hashtags=${'zapvi'}&via=${'zapvi'}&related=${'mobile cover, mousepad, phone grips, t-shirt, keychain, mobile accessories'}&url=${url}`
},
{
Expand Down Expand Up @@ -117,7 +117,7 @@ const copyToClipboard = (link) => {
</li>

<li class="p-2">
<Twitter
<X
class="share-button"
text="{productName}"
url="{url}"
Expand Down
6 changes: 3 additions & 3 deletions src/routes/(app)/store/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
LinkedIn,
Pinterest,
Telegram,
Twitter,
X,
WhatsApp
} from 'svelte-share-buttons-component'
import { page } from '$app/stores'
Expand Down Expand Up @@ -58,7 +58,7 @@ let media = data.vendor?.banners[0]
</li>
<li>
<Twitter
<X
class="share-button"
text="{text}"
url="{url}"
Expand Down Expand Up @@ -103,7 +103,7 @@ let media = data.vendor?.banners[0]
</li>
<li>
<Twitter
<X
class="share-button"
text="{text}"
url="{url}"
Expand Down

1 comment on commit 781999f

@vercel
Copy link

@vercel vercel bot commented on 781999f Nov 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.