From 39a2f742a9d1cf670d8c82b2a2b02194d15fbf66 Mon Sep 17 00:00:00 2001 From: Klaas Kliffen <kliffen@astron.nl> Date: Mon, 26 Feb 2024 16:06:08 +0100 Subject: [PATCH] feat: add up icon --- src/assets/icons/index.ts | 2 ++ src/assets/icons/up.svg | 13 +++++++++++++ src/components/Icon.tsx | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 src/assets/icons/up.svg diff --git a/src/assets/icons/index.ts b/src/assets/icons/index.ts index d54283e..7151d96 100644 --- a/src/assets/icons/index.ts +++ b/src/assets/icons/index.ts @@ -16,6 +16,7 @@ import Minus from "./minus.svg"; import Next from "./next.svg"; import Plus from "./plus.svg"; import Previous from "./previous.svg"; +import Up from "./up.svg"; export default { AttentionCircle, @@ -36,4 +37,5 @@ export default { Next, Plus, Previous, + Up, }; diff --git a/src/assets/icons/up.svg b/src/assets/icons/up.svg new file mode 100644 index 0000000..e11776c --- /dev/null +++ b/src/assets/icons/up.svg @@ -0,0 +1,13 @@ +<svg + width="14" + height="8" + viewBox="0 0 14 8" + fill="none" + xmlns="http://www.w3.org/2000/svg"> + <path + d="M13 7L7 1L1 7" + stroke="currentColor" + stroke-width="2" + stroke-linecap="round" + stroke-linejoin="round" /> +</svg> diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index a284abf..f46879e 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -23,6 +23,7 @@ export const iconNameOptions = [ "next", "plus", "previous", + "up", ] as const; // for storybook dropdown export type IconName = (typeof iconNameOptions)[number]; // for storybook dropdown @@ -46,6 +47,7 @@ const iconMap = { next: Icons.Next, plus: Icons.Plus, previous: Icons.Previous, + up: Icons.Up, }; type IconProps = { -- GitLab