From dba810655f7c224fc67716beb49c5b8d81e76bc2 Mon Sep 17 00:00:00 2001 From: alireza-sharifpour Date: Sun, 4 Sep 2022 12:48:04 +0430 Subject: [PATCH] fix: add Discord icons --- package.json | 2 +- src/components/index.ts | 3 +++ .../social-icons/Discord/Discord.tsx | 18 +++++++++++++++++ .../social-icons/Discord/Discord18.tsx | 20 +++++++++++++++++++ .../social-icons/Discord/Discord24.tsx | 20 +++++++++++++++++++ 5 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 src/components/social-icons/Discord/Discord.tsx create mode 100644 src/components/social-icons/Discord/Discord18.tsx create mode 100644 src/components/social-icons/Discord/Discord24.tsx diff --git a/package.json b/package.json index e27e83f..f213e73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@giveth/ui-design-system", - "version": "1.8.20", + "version": "1.8.21", "files": [ "/lib" ], diff --git a/src/components/index.ts b/src/components/index.ts index c61651b..bf39a6a 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -202,6 +202,9 @@ export * from './social-icons/Linkedin/Linkedin24'; export * from './social-icons/Instagram/Instagram'; export * from './social-icons/Instagram/Instagram18'; export * from './social-icons/Instagram/Instagram24'; +export * from './social-icons/Discord/Discord'; +export * from './social-icons/Discord/Discord18'; +export * from './social-icons/Discord/Discord24'; export * from './social-icons/Wikipedia'; export * from './social-icons/Youtube'; export * from './social-icons/Docs/Docs'; diff --git a/src/components/social-icons/Discord/Discord.tsx b/src/components/social-icons/Discord/Discord.tsx new file mode 100644 index 0000000..2a7fddd --- /dev/null +++ b/src/components/social-icons/Discord/Discord.tsx @@ -0,0 +1,18 @@ +import React, { FC } from 'react'; +import { ISocialIconProps } from '../type'; +import { IconDiscord18 } from './Discord18'; +import { IconDiscord24 } from './Discord24'; + +export const IconDiscord: FC = ({ + size = 18, + color = 'currentColor', +}) => { + switch (size.toString()) { + case '18': + return ; + case '24': + return ; + default: + return ; + } +}; diff --git a/src/components/social-icons/Discord/Discord18.tsx b/src/components/social-icons/Discord/Discord18.tsx new file mode 100644 index 0000000..f6dc805 --- /dev/null +++ b/src/components/social-icons/Discord/Discord18.tsx @@ -0,0 +1,20 @@ +import React, { FC } from 'react'; +import { ISocialIconProps } from '../type'; + +export const IconDiscord18: FC = ({ + size = 18, + color = 'currentColor', +}) => ( + + + +); diff --git a/src/components/social-icons/Discord/Discord24.tsx b/src/components/social-icons/Discord/Discord24.tsx new file mode 100644 index 0000000..2ea4669 --- /dev/null +++ b/src/components/social-icons/Discord/Discord24.tsx @@ -0,0 +1,20 @@ +import React, { FC } from 'react'; +import { ISocialIconProps } from '../type'; + +export const IconDiscord24: FC = ({ + size = 24, + color = 'currentColor', +}) => ( + + + +);