From 406bc01ed1179c39e00b5dc6b4af06137ee404a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 9 Sep 2024 12:52:24 +0200 Subject: [PATCH] pl-fe: rename modals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/actions/modals.ts | 2 +- packages/pl-fe/src/features/ui/components/modal-root.tsx | 8 ++++---- .../{account-moderation-modal.tsx => index.tsx} | 0 .../{compose-event-modal.tsx => index.tsx} | 0 .../{create-group-modal.tsx => index.tsx} | 0 .../modals/report-modal/{report-modal.tsx => index.tsx} | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename packages/pl-fe/src/features/ui/components/modals/account-moderation-modal/{account-moderation-modal.tsx => index.tsx} (100%) rename packages/pl-fe/src/features/ui/components/modals/compose-event-modal/{compose-event-modal.tsx => index.tsx} (100%) rename packages/pl-fe/src/features/ui/components/modals/manage-group-modal/{create-group-modal.tsx => index.tsx} (100%) rename packages/pl-fe/src/features/ui/components/modals/report-modal/{report-modal.tsx => index.tsx} (100%) diff --git a/packages/pl-fe/src/actions/modals.ts b/packages/pl-fe/src/actions/modals.ts index ea38dba6c..83ce07b74 100644 --- a/packages/pl-fe/src/actions/modals.ts +++ b/packages/pl-fe/src/actions/modals.ts @@ -2,7 +2,7 @@ import { AppDispatch } from 'pl-fe/store'; import type { ICryptoAddress } from 'pl-fe/features/crypto-donate/components/crypto-address'; import type { ModalType } from 'pl-fe/features/ui/components/modal-root'; -import type { AccountModerationModalProps } from 'pl-fe/features/ui/components/modals/account-moderation-modal/account-moderation-modal'; +import type { AccountModerationModalProps } from 'pl-fe/features/ui/components/modals/account-moderation-modal'; import type { BoostModalProps } from 'pl-fe/features/ui/components/modals/boost-modal'; import type { CompareHistoryModalProps } from 'pl-fe/features/ui/components/modals/compare-history-modal'; import type { ComponentModalProps } from 'pl-fe/features/ui/components/modals/component-modal'; diff --git a/packages/pl-fe/src/features/ui/components/modal-root.tsx b/packages/pl-fe/src/features/ui/components/modal-root.tsx index 8e64c7748..86dc3cfc0 100644 --- a/packages/pl-fe/src/features/ui/components/modal-root.tsx +++ b/packages/pl-fe/src/features/ui/components/modal-root.tsx @@ -11,15 +11,15 @@ import ModalLoading from './modal-loading'; /* eslint sort-keys: "error" */ const MODAL_COMPONENTS = { - ACCOUNT_MODERATION: lazy(() => import('pl-fe/features/ui/components/modals/account-moderation-modal/account-moderation-modal')), + ACCOUNT_MODERATION: lazy(() => import('pl-fe/features/ui/components/modals/account-moderation-modal')), BIRTHDAYS: lazy(() => import('pl-fe/features/ui/components/modals/birthdays-modal')), BOOST: lazy(() => import('pl-fe/features/ui/components/modals/boost-modal')), COMPARE_HISTORY: lazy(() => import('pl-fe/features/ui/components/modals/compare-history-modal')), COMPONENT: lazy(() => import('pl-fe/features/ui/components/modals/component-modal')), COMPOSE: lazy(() => import('pl-fe/features/ui/components/modals/compose-modal')), - COMPOSE_EVENT: lazy(() => import('pl-fe/features/ui/components/modals/compose-event-modal/compose-event-modal')), + COMPOSE_EVENT: lazy(() => import('pl-fe/features/ui/components/modals/compose-event-modal')), CONFIRM: lazy(() => import('pl-fe/features/ui/components/modals/confirmation-modal')), - CREATE_GROUP: lazy(() => import('pl-fe/features/ui/components/modals/manage-group-modal/create-group-modal')), + CREATE_GROUP: lazy(() => import('pl-fe/features/ui/components/modals/manage-group-modal')), CRYPTO_DONATE: lazy(() => import('pl-fe/features/ui/components/modals/crypto-donate-modal')), DISLIKES: lazy(() => import('pl-fe/features/ui/components/modals/dislikes-modal')), EDIT_ANNOUNCEMENT: lazy(() => import('pl-fe/features/ui/components/modals/edit-announcement-modal')), @@ -43,7 +43,7 @@ const MODAL_COMPONENTS = { REACTIONS: lazy(() => import('pl-fe/features/ui/components/modals/reactions-modal')), REBLOGS: lazy(() => import('pl-fe/features/ui/components/modals/reblogs-modal')), REPLY_MENTIONS: lazy(() => import('pl-fe/features/ui/components/modals/reply-mentions-modal')), - REPORT: lazy(() => import('pl-fe/features/ui/components/modals/report-modal/report-modal')), + REPORT: lazy(() => import('pl-fe/features/ui/components/modals/report-modal')), SELECT_BOOKMARK_FOLDER: lazy(() => import('pl-fe/features/ui/components/modals/select-bookmark-folder-modal')), TEXT_FIELD: lazy(() => import('pl-fe/features/ui/components/modals/text-field-modal')), UNAUTHORIZED: lazy(() => import('pl-fe/features/ui/components/modals/unauthorized-modal')), diff --git a/packages/pl-fe/src/features/ui/components/modals/account-moderation-modal/account-moderation-modal.tsx b/packages/pl-fe/src/features/ui/components/modals/account-moderation-modal/index.tsx similarity index 100% rename from packages/pl-fe/src/features/ui/components/modals/account-moderation-modal/account-moderation-modal.tsx rename to packages/pl-fe/src/features/ui/components/modals/account-moderation-modal/index.tsx diff --git a/packages/pl-fe/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx b/packages/pl-fe/src/features/ui/components/modals/compose-event-modal/index.tsx similarity index 100% rename from packages/pl-fe/src/features/ui/components/modals/compose-event-modal/compose-event-modal.tsx rename to packages/pl-fe/src/features/ui/components/modals/compose-event-modal/index.tsx diff --git a/packages/pl-fe/src/features/ui/components/modals/manage-group-modal/create-group-modal.tsx b/packages/pl-fe/src/features/ui/components/modals/manage-group-modal/index.tsx similarity index 100% rename from packages/pl-fe/src/features/ui/components/modals/manage-group-modal/create-group-modal.tsx rename to packages/pl-fe/src/features/ui/components/modals/manage-group-modal/index.tsx diff --git a/packages/pl-fe/src/features/ui/components/modals/report-modal/report-modal.tsx b/packages/pl-fe/src/features/ui/components/modals/report-modal/index.tsx similarity index 100% rename from packages/pl-fe/src/features/ui/components/modals/report-modal/report-modal.tsx rename to packages/pl-fe/src/features/ui/components/modals/report-modal/index.tsx