From e25ef4771123a82dde4fc2a330ee57e549c14602 Mon Sep 17 00:00:00 2001 From: Ape Fede Date: Tue, 15 Nov 2022 17:55:34 -0300 Subject: [PATCH] chore: Add settings Icon --- src/components/Svg/Icons/MenuSettings.tsx | 26 +++++++++++++++++++++++ src/components/Svg/Icons/index.ts | 1 + src/components/Svg/Svg.tsx | 4 ++++ src/components/Svg/types.ts | 1 + 4 files changed, 32 insertions(+) create mode 100644 src/components/Svg/Icons/MenuSettings.tsx diff --git a/src/components/Svg/Icons/MenuSettings.tsx b/src/components/Svg/Icons/MenuSettings.tsx new file mode 100644 index 00000000..9eeb8f50 --- /dev/null +++ b/src/components/Svg/Icons/MenuSettings.tsx @@ -0,0 +1,26 @@ +/** @jsxImportSource theme-ui */ +import React from "react"; +import { rotation, SvgProps } from "./types"; + +const Arrow: React.FC = ({ direction = "down", color = "text", width, getStyles }) => { + const deg: rotation = { + left: 90, + up: 180, + right: 270, + down: 0, + }; + const style = getStyles({ + degree: deg[direction as keyof rotation], + color, + }); + return ( + + + + ); +}; + +export default Arrow; diff --git a/src/components/Svg/Icons/index.ts b/src/components/Svg/Icons/index.ts index c122cc98..6fb7cb3a 100644 --- a/src/components/Svg/Icons/index.ts +++ b/src/components/Svg/Icons/index.ts @@ -45,3 +45,4 @@ export { default as ZapIcon } from "./ZapIcon"; export { default as Migrate } from "./Migrate"; export { default as Message } from "./Message"; export { default as Positions } from "./Positions"; +export { default as MenuSettings } from "./MenuSettings"; diff --git a/src/components/Svg/Svg.tsx b/src/components/Svg/Svg.tsx index b9dd74b8..a3706cb3 100644 --- a/src/components/Svg/Svg.tsx +++ b/src/components/Svg/Svg.tsx @@ -50,6 +50,7 @@ import { Migrate, Message, Positions, + MenuSettings, } from "./Icons"; import { BSC, BANANA, BNB, ETH, GNANA, POLYGON, TLOS } from "./tokens"; import { IconStyles } from "./Icons/types"; @@ -223,6 +224,9 @@ const Svg: React.FC = ({ icon, ...props }: any) => { if (icon === icons.POSITIONS) { return ; } + if (icon === icons.MENU_SETTINGS) { + return ; + } return null; }; diff --git a/src/components/Svg/types.ts b/src/components/Svg/types.ts index 954c40d6..f3eacf0f 100644 --- a/src/components/Svg/types.ts +++ b/src/components/Svg/types.ts @@ -59,6 +59,7 @@ export enum icons { MIGRATE = "Migrate", MESSAGE = "message", POSITIONS = "Positions", + MENU_SETTINGS = "MenuSettings", } export enum directions {