Skip to content

Commit

Permalink
chore: Add settings Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ape-fede committed Nov 15, 2022
1 parent 37ac453 commit e25ef47
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/components/Svg/Icons/MenuSettings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/** @jsxImportSource theme-ui */
import React from "react";
import { rotation, SvgProps } from "./types";

const Arrow: React.FC<SvgProps> = ({ 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 (
<svg width={width || "11"} height="18" viewBox="0 0 18 18" sx={style}>
<path
d="M0 15C0 15.55 0.45 16 1 16H6V14H1C0.45 14 0 14.45 0 15ZM0 3C0 3.55 0.45 4 1 4H10V2H1C0.45 2 0 2.45 0 3ZM10 17V16H17C17.55 16 18 15.55 18 15C18 14.45 17.55 14 17 14H10V13C10 12.45 9.55 12 9 12C8.45 12 8 12.45 8 13V17C8 17.55 8.45 18 9 18C9.55 18 10 17.55 10 17ZM4 7V8H1C0.45 8 0 8.45 0 9C0 9.55 0.45 10 1 10H4V11C4 11.55 4.45 12 5 12C5.55 12 6 11.55 6 11V7C6 6.45 5.55 6 5 6C4.45 6 4 6.45 4 7ZM18 9C18 8.45 17.55 8 17 8H8V10H17C17.55 10 18 9.55 18 9ZM13 6C13.55 6 14 5.55 14 5V4H17C17.55 4 18 3.55 18 3C18 2.45 17.55 2 17 2H14V1C14 0.45 13.55 0 13 0C12.45 0 12 0.45 12 1V5C12 5.55 12.45 6 13 6Z"
fill="#4D4040"
/>
</svg>
);
};

export default Arrow;
1 change: 1 addition & 0 deletions src/components/Svg/Icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
4 changes: 4 additions & 0 deletions src/components/Svg/Svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -223,6 +224,9 @@ const Svg: React.FC<SvgProps> = ({ icon, ...props }: any) => {
if (icon === icons.POSITIONS) {
return <Positions {...props} getStyles={getStyles} />;
}
if (icon === icons.MENU_SETTINGS) {
return <MenuSettings {...props} getStyles={getStyles} />;
}
return null;
};

Expand Down
1 change: 1 addition & 0 deletions src/components/Svg/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export enum icons {
MIGRATE = "Migrate",
MESSAGE = "message",
POSITIONS = "Positions",
MENU_SETTINGS = "MenuSettings",
}

export enum directions {
Expand Down

0 comments on commit e25ef47

Please sign in to comment.