Skip to content

Commit

Permalink
docs: replace Twitter reference by X
Browse files Browse the repository at this point in the history
Twitter references are replaces by X reference.
All functions related to Github contributors fetching are excluded from this change.
  • Loading branch information
sarkaaa committed Oct 4, 2024
1 parent 85ecc5a commit 39abc5b
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/src/__examples__/SocialButton/DEFAULT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
name: "type",
type: "select",
defaultValue: "apple",
options: ["apple", "facebook", "twitter", "google"],
options: ["apple", "facebook", "X", "google"],
},
{
name: "fullWidth",
Expand Down
4 changes: 2 additions & 2 deletions docs/src/__examples__/SocialButton/services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default {
code: `() => <SocialButton type="google">Sign in with Google</SocialButton>`,
},
{
name: "twitter",
code: `() => <SocialButton type="twitter">Sign in with Twitter</SocialButton>`,
name: "X",
code: `() => <SocialButton type="X">Sign in with X</SocialButton>`,
},
],
};
6 changes: 3 additions & 3 deletions docs/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Link, useStaticQuery, graphql } from "gatsby";
import mediaQueries from "./MediaQueries";
import Switch from "./Switch";
import GitHub from "../images/logos/github-circle.svg";
import Twitter from "../images/logos/twitter-circle.svg";
import X from "../images/logos/x.svg";
import orbitHeart from "../images/orbit-heart.png";
import { MAX_CONTENT_WIDTH, CONTENT_PADDING } from "../consts";
import useDevMode from "../hooks/useDevMode";
Expand Down Expand Up @@ -127,8 +127,8 @@ export default function Footer() {
<StyledIconLink href="https://github.com/kiwicom/orbit" aria-label="GitHub">
<GitHub />
</StyledIconLink>
<StyledIconLink href="https://twitter.com/OrbitKiwi" aria-label="Twitter">
<Twitter />
<StyledIconLink href="https://x.com/OrbitKiwi" aria-label="X">
<X />
</StyledIconLink>
</Stack>
</Stack>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/Head/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export default function Head({ title, hasSiteName, description, path }: Props) {
<meta property="og:title" content={pageTitle} />
<meta property="og:description" content={description} />
<meta property="og:url" content={url} />
{/* Twitter Card */}
{/* https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary */}
{/* X Card */}
{/* https://developer.x.com/en/docs/x-for-websites/cards/overview/summary */}
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@OrbitKiwi" />
<meta name="twitter:title" content={pageTitle} />
Expand Down
1 change: 0 additions & 1 deletion docs/src/images/logos/twitter-circle.svg

This file was deleted.

3 changes: 3 additions & 0 deletions docs/src/images/logos/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion docs/src/images/twitter.svg

This file was deleted.

3 changes: 3 additions & 0 deletions docs/src/images/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import HeaderBox from "../components/HeaderBox";
import BrandedTile from "../components/BrandedTile";
import GitHubLogo from "../images/github-full.svg";
import FigmaLogo from "../images/figma-logo.svg";
import TwitterLogo from "../images/twitter.svg";
import XLogo from "../images/x.svg";
import srcTequila from "../images/tequila.png";
import { MAX_CONTENT_WIDTH } from "../consts";
import ScreenReaderText from "../components/ScreenReaderText";
Expand Down Expand Up @@ -273,18 +273,18 @@ export default function Home({ location, path }: Props) {
free.
</BrandedTile>
<BrandedTile
title="Follow us on Twitter"
title="Follow us on X"
icon={<LoveBirdIcon />}
href="https://twitter.com/OrbitKiwi"
linkContent="Follow Orbit on Twitter"
logo={<TwitterLogo />}
href="https://x.com/OrbitKiwi"
linkContent="Follow Orbit on X"
logo={<XLogo />}
color={{
primary: "#0989CF",
secondary: "#179CE3",
primary: "#15171a",
secondary: "#657785",
}}
>
Twitter is one of our main platforms for sharing. Everything important that is
happening around Orbit is published on Twitter.
X is one of our main platforms for sharing. Everything important that is happening
around Orbit is published on X.
</BrandedTile>
<BrandedTile
title="Connect Orbit to Tequila"
Expand Down

0 comments on commit 39abc5b

Please sign in to comment.