From 092c578b419976bd45768a565abaa144fa162cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Ekstr=C3=B6m?= Date: Tue, 7 Nov 2023 15:46:41 +0100 Subject: [PATCH] Add more icons --- src/components/Icon/index.tsx | 39 ++++++++++++++++++-- src/constants/icons.ts | 67 ++++++++++++++++++++++++++++++++++- 2 files changed, 102 insertions(+), 4 deletions(-) diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index 6837f8f..670a647 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -168,9 +168,6 @@ const Icon = ({ name, className }: { case 'computer': return - case 'champagne-glasses': - return - case 'ArchetypesBollard': return @@ -477,6 +474,42 @@ const Icon = ({ name, className }: { case 'rotate': return + case 'blender': + return + + case 'mug': + return + + case 'beer': + return + + case 'wine-glass': + return + + case 'wine-bottle': + return + + case 'whiskey-glass': + return + + case 'martini-citrus': + return + + case 'martini': + return + + case 'champagne-glasses': + return + + case 'glass-water': + return + + case 'burger': + return + + case 'pizza-slice': + return + default: return null; }; diff --git a/src/constants/icons.ts b/src/constants/icons.ts index d35b1f9..45b5b66 100644 --- a/src/constants/icons.ts +++ b/src/constants/icons.ts @@ -1,4 +1,3 @@ - export const IconsList = [ { name: 'arrow-up-down', @@ -672,6 +671,72 @@ export const IconsList = [ on: 'rotate', off: 'rotate', }, + { + name: 'mug', + preview: 'mug', + on: 'mug', + off: 'mug', + }, + { + name: 'blender', + preview: 'blender', + on: 'blender', + off: 'blender', + }, + { + name: 'beer', + preview: 'beer', + on: 'beer', + off: 'beer', + }, + { + name: 'wine-glass', + preview: 'wine-glass', + on: 'wine-glass', + off: 'wine-glass', + }, + { + name: 'wine-bottle', + preview: 'wine-bottle', + on: 'wine-bottle', + off: 'wine-bottle', + }, + { + name: 'whiskey-glass', + preview: 'whiskey-glass', + on: 'whiskey-glass', + off: 'whiskey-glass', + }, + { + name: 'martini-citrus', + preview: 'martini-citrus', + on: 'martini-citrus', + off: 'martini-citrus', + }, + { + name: 'martini', + preview: 'martini', + on: 'martini', + off: 'martini', + }, + { + name: 'glass-water', + preview: 'glass-water', + on: 'glass-water', + off: 'glass-water', + }, + { + name: 'burger', + preview: 'burger', + on: 'burger', + off: 'burger', + }, + { + name: 'pizza-slice', + preview: 'pizza-slice', + on: 'pizza-slice', + off: 'pizza-slice', + }, ]; export type IconNames = typeof IconsList[number]['name'];