Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update twitter references to x #292

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

const footerLinks = [
{ label: 'Blog', to: '/blog' },
{ label: '@Tan_Stack Twitter', to: 'https://twitter.com/tan_stack' },
{ label: '@Tan_Stack X/Twitter', to: 'https://x.com/tan_stack' },
{
label: '@TannerLinsley Twitter',
to: 'https://twitter.com/tannerlinsley',
label: '@TannerLinsley X/Twitter',
to: 'https://x.com/tannerlinsley',
},
{ label: 'GitHub', to: 'https://github.com/tanstack' },
{
Expand All @@ -29,7 +29,7 @@
{footerLinks.map((item) => (
<div key={item.to}>
{item.to.startsWith('http') ? (
<a href={item.to} target="_blank">

Check warning on line 32 in app/components/Footer.tsx

View workflow job for this annotation

GitHub Actions / PR

Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations
{item.label}
</a>
) : (
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_libraries.dedicated-support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function LoginComp() {
{[teamMembers[0], ...randomIndices.map((i) => teamMembers[i])].map(
(member) => (
<Link
to={`https://twitter.com/${member.twitter}`}
to={`https://x.com/${member.twitter}`}
className="group bg-white dark:bg-gray-800 rounded-lg overflow-hidden shadow-lg"
key={member.name}
target="_blank"
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_libraries.query.$version.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default function VersionIndex() {
Created by{' '}
<a
className="font-bold underline"
href="https://twitter.com/TkDodo"
href="https://x.com/TkDodo"
>
Dominik Dorfmeister
</a>{' '}
Expand Down
6 changes: 3 additions & 3 deletions app/routes/_libraries.start.$version.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
FaDiscord,
FaGithub,
FaTshirt,
FaTwitter,
FaYinYang,
} from 'react-icons/fa'
import { FaXTwitter } from 'react-icons/fa6'
import { Await, Link, getRouteApi } from '@tanstack/react-router'
import { Carbon } from '~/components/Carbon'
import { Footer } from '~/components/Footer'
Expand Down Expand Up @@ -315,14 +315,14 @@ export default function VersionIndex() {
<FaGithub /> TanStack.com Source
</a>
<a
href={`https://twitter.com/intent/post?text=${encodeURIComponent(
href={`https://x.com/intent/post?text=${encodeURIComponent(
`TanStack Start is in ALPHA! It's a new full-stack React framework from @Tan_Stack and you can check it out at https://tanstack.com/start/`
)}`}
target="_blank"
className={`flex items-center gap-2 py-2 px-4 bg-cyan-500 rounded text-white uppercase font-extrabold`}
rel="noreferrer"
>
<FaTwitter /> Tweet about it!
<FaXTwitter /> Tweet about it!
</a>{' '}
</div>
</div>
Expand Down
11 changes: 3 additions & 8 deletions app/routes/_libraries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@ import { twMerge } from 'tailwind-merge'
import { OramaSearchBox } from '@orama/react-components'
import { sortBy } from '~/utils/utils'
import logoColor100w from '~/images/logo-color-100w.png'
import {
FaDiscord,
FaGithub,
FaInstagram,
FaTshirt,
FaTwitter,
} from 'react-icons/fa'
import { FaDiscord, FaGithub, FaInstagram, FaTshirt } from 'react-icons/fa'
import { FaXTwitter } from 'react-icons/fa6'
import { getSponsorsForSponsorPack } from '~/server/sponsors'
import { getLibrary, libraries } from '~/libraries'
import { Scarf } from '~/components/Scarf'
Expand Down Expand Up @@ -206,7 +201,7 @@ function LibrariesLayout() {
href="https://x.com/tan_stack"
className="opacity-70 hover:opacity-100"
>
<FaTwitter className="text-xl" />
<FaXTwitter className="text-xl" />
</a>
<a
href="https://instagram.com/tan_stack"
Expand Down
Loading