Skip to content

Commit

Permalink
Update Twitter icon to X (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura authored Oct 27, 2023
1 parent 9fdcbc4 commit 59e706f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
11 changes: 0 additions & 11 deletions packages/ui/src/components/icons/brand/Twitter.tsx

This file was deleted.

11 changes: 11 additions & 0 deletions packages/ui/src/components/icons/brand/X.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { memo } from "react";
import { Icon, IconProps } from "@chakra-ui/react";

export const XIcon = memo((props: IconProps) => (
<Icon viewBox="0 0 24 24" {...props}>
<path
d="M13.4894 10.7749L19.3177 4H17.9366L12.8759 9.88256L8.83395 4H4.17202L10.2843 12.8955L4.17202 20H5.55321L10.8974 13.7878L15.1661 20H19.828L13.4891 10.7749H13.4894ZM11.5977 12.9738L10.9784 12.0881L6.05088 5.03974H8.17231L12.1489 10.728L12.7682 11.6137L17.9373 19.0075H15.8158L11.5977 12.9742V12.9738Z"
fill="currentColor"
/>
</Icon>
));
2 changes: 1 addition & 1 deletion packages/ui/src/components/icons/brand/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ export * from "./Redline";
export * from "./Safari";
export * from "./Starknet";
export * from "./Telegram";
export * from "./Twitter";
export * from "./X";
6 changes: 3 additions & 3 deletions packages/ui/src/stories/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DiscordIcon, GitHubIcon, TwitterIcon } from "../components/icons";
import { DiscordIcon, GitHubIcon, XIcon } from "../components/icons";
import { Dropdown } from "../components";
import { Meta, StoryObj } from "@storybook/react";

Expand All @@ -16,8 +16,8 @@ export const Example: Story = {
args: {
items: [
{
label: "Twitter",
icon: <TwitterIcon boxSize={6} />,
label: "X",
icon: <XIcon boxSize={6} />,
onClick: () => console.log("clicked"),
},
{
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/src/stories/IconButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IconButton } from "@chakra-ui/react";
import { Meta, StoryObj } from "@storybook/react";
import { ArrowLeftIcon, TwitterIcon } from "../components/icons";
import { ArrowLeftIcon, XIcon } from "../components/icons";

/**
*
Expand Down Expand Up @@ -29,7 +29,7 @@ export const Square: Story = {

export const Brand: Story = {
args: {
icon: <TwitterIcon />,
icon: <XIcon />,
fontSize: "2xl",
px: 4,
py: 2,
Expand All @@ -39,7 +39,7 @@ export const Brand: Story = {
export const BrandRound: Story = {
args: {
variant: "round",
icon: <TwitterIcon />,
icon: <XIcon />,
fontSize: "2xl",
px: 4,
py: 2,
Expand Down

4 comments on commit 59e706f

@vercel
Copy link

@vercel vercel bot commented on 59e706f Oct 27, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

cartridge-starknet-react-next – ./examples/starknet-react-next

cartridge-starknet-react-next.preview.cartridge.gg
cartridge-starknet-react-next-git-main.preview.cartridge.gg

@vercel
Copy link

@vercel vercel bot commented on 59e706f Oct 27, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

keychain – ./packages/keychain

x.cartridge.gg
keychain.preview.cartridge.gg
keychain-git-main.preview.cartridge.gg
x.preview.cartridge.gg

@vercel
Copy link

@vercel vercel bot commented on 59e706f Oct 27, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

ui – ./packages/ui

ui-git-main.preview.cartridge.gg
ui.preview.cartridge.gg
storybook.preview.cartridge.gg

@vercel
Copy link

@vercel vercel bot commented on 59e706f Oct 27, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

docs – ./docs

docs-git-main.preview.cartridge.gg
docs.preview.cartridge.gg
docs.cartridge.gg

Please sign in to comment.