From c7b1a3c5fdab56dbe690d49459c38b231ab09910 Mon Sep 17 00:00:00 2001 From: JKaypa Date: Mon, 26 Aug 2024 15:01:48 -0500 Subject: [PATCH] OV-13: - remove icons from components to common directory --- frontend/src/bundles/common/components/components.ts | 1 - frontend/src/bundles/common/components/side-bar/side-bar.tsx | 3 +-- .../src/bundles/common/{components/icon => icons}/icon-map.ts | 0 .../bundles/common/{components/icon/icon.ts => icons/icons.ts} | 0 .../src/bundles/common/{components/icon => icons}/size.enum.ts | 0 5 files changed, 1 insertion(+), 3 deletions(-) rename frontend/src/bundles/common/{components/icon => icons}/icon-map.ts (100%) rename frontend/src/bundles/common/{components/icon/icon.ts => icons/icons.ts} (100%) rename frontend/src/bundles/common/{components/icon => icons}/size.enum.ts (100%) diff --git a/frontend/src/bundles/common/components/components.ts b/frontend/src/bundles/common/components/components.ts index 72b0b284e..f76e9e0f2 100644 --- a/frontend/src/bundles/common/components/components.ts +++ b/frontend/src/bundles/common/components/components.ts @@ -1,6 +1,5 @@ export { Button } from './button/button.js'; export { Header } from './header/header.js'; -export { IconMap } from './icon/icon.js'; export { Input } from './input/input.js'; export { Link } from './link/link.js'; export { Loader } from './loader/loader.js'; diff --git a/frontend/src/bundles/common/components/side-bar/side-bar.tsx b/frontend/src/bundles/common/components/side-bar/side-bar.tsx index d86078bb9..41e166158 100644 --- a/frontend/src/bundles/common/components/side-bar/side-bar.tsx +++ b/frontend/src/bundles/common/components/side-bar/side-bar.tsx @@ -5,7 +5,6 @@ import { Flex, Icon, IconButton, - IconMap, Spacer, } from '~/bundles/common/components/components.js'; import { AppRoute } from '~/bundles/common/enums/enums.js'; @@ -15,10 +14,10 @@ import { useNavigate, useState, } from '~/bundles/common/hooks/hooks.js'; +import { IconMap, Size } from '~/bundles/common/icons/icons.js'; import { type ValueOf } from '~/bundles/common/types/types.js'; import { UserCard, UserCircle } from '~/bundles/users/components/components.js'; -import { Size } from '../icon/icon.js'; import { CollapseButton, CollapseButtonLink, diff --git a/frontend/src/bundles/common/components/icon/icon-map.ts b/frontend/src/bundles/common/icons/icon-map.ts similarity index 100% rename from frontend/src/bundles/common/components/icon/icon-map.ts rename to frontend/src/bundles/common/icons/icon-map.ts diff --git a/frontend/src/bundles/common/components/icon/icon.ts b/frontend/src/bundles/common/icons/icons.ts similarity index 100% rename from frontend/src/bundles/common/components/icon/icon.ts rename to frontend/src/bundles/common/icons/icons.ts diff --git a/frontend/src/bundles/common/components/icon/size.enum.ts b/frontend/src/bundles/common/icons/size.enum.ts similarity index 100% rename from frontend/src/bundles/common/components/icon/size.enum.ts rename to frontend/src/bundles/common/icons/size.enum.ts