Skip to content
Open
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
29 changes: 29 additions & 0 deletions launcher/components/icons/X.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import type { FC } from 'react';
import type { ViewStyle } from 'react-native';
import Svg, { Path } from 'react-native-svg';

interface Props {
style?: ViewStyle;
size?: number;
color?: string;
}

const XIcon: FC<Props> = ({ style, size = 20, color = '#fff' }) => {
const height = (size * 16) / 20;
return (
<Svg
style={style}
width={size}
height={height}
fill="none"
viewBox="0 0 512 512"
>
<Path
fill={color}
d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"
/>
</Svg>
);
};

export default XIcon;
10 changes: 5 additions & 5 deletions launcher/screens/Home/sections/SocialNetwork/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { FC } from 'react';
import type { ViewStyle } from 'react-native';
import DiscordIcon from 'components/icons/Discord';
import GithubIcon from 'components/icons/GithubSolid';
import TwitterIcon from 'components/icons/Twitter';
import XIcon from 'components/icons/X';
import { navigate } from 'stacks/Browser/shared';

export interface ButtonText {
Expand Down Expand Up @@ -41,21 +41,21 @@ export const buttonList: ButtonText[] = [

export const socialLinkList: SocialLink[] = [
{
href: 'https://discord.gg/sXcz9Em4AR',
href: 'https://discord.gg/fhN6vEcg',
Component: DiscordIcon,
props: {
size: 42,
},
},
{
href: 'https://twitter.com/PlayUnderRealm',
Component: TwitterIcon,
href: 'https://x.com/PlayUnderRealm',
Component: XIcon,
props: {
size: 40,
},
},
{
href: 'https://github.com/cocrafts',
href: 'https://github.com/cocrafts/UnderRealm',
Component: GithubIcon,
props: {
size: 32,
Expand Down