From 05bd97df3b87ec3de0f4af8729b2318540240619 Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 23 Aug 2022 11:50:03 +1000 Subject: [PATCH] refactor: created themes folder and moved SessionTheme --- ts/components/DebugLogView.tsx | 2 +- ts/components/conversation/SessionConversation.tsx | 2 +- ts/components/leftpane/ActionsPanel.tsx | 2 +- ts/components/leftpane/LeftPane.tsx | 2 +- ts/components/registration/SessionRegistrationView.tsx | 2 +- ts/{state/ducks => themes}/SessionTheme.tsx | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename ts/{state/ducks => themes}/SessionTheme.tsx (100%) diff --git a/ts/components/DebugLogView.tsx b/ts/components/DebugLogView.tsx index 61e412967..a2ea2d428 100644 --- a/ts/components/DebugLogView.tsx +++ b/ts/components/DebugLogView.tsx @@ -4,7 +4,7 @@ import { SessionTheme, switchHtmlToDarkTheme, switchHtmlToLightTheme, -} from '../state/ducks/SessionTheme'; +} from '../themes/SessionTheme'; import { fetch } from '../util/logging'; import { SessionButton } from './basic/SessionButton'; diff --git a/ts/components/conversation/SessionConversation.tsx b/ts/components/conversation/SessionConversation.tsx index a7a836565..5e54346f5 100644 --- a/ts/components/conversation/SessionConversation.tsx +++ b/ts/components/conversation/SessionConversation.tsx @@ -33,7 +33,7 @@ import { updateMentionsMembers, } from '../../state/ducks/conversations'; import { updateConfirmModal } from '../../state/ducks/modalDialog'; -import { SessionTheme } from '../../state/ducks/SessionTheme'; +import { SessionTheme } from '../../themes/SessionTheme'; import { addStagedAttachmentsInConversation } from '../../state/ducks/stagedAttachments'; import { MIME } from '../../types'; import { AttachmentTypeWithPath } from '../../types/Attachment'; diff --git a/ts/components/leftpane/ActionsPanel.tsx b/ts/components/leftpane/ActionsPanel.tsx index f989b986e..20da0fdb0 100644 --- a/ts/components/leftpane/ActionsPanel.tsx +++ b/ts/components/leftpane/ActionsPanel.tsx @@ -39,7 +39,7 @@ import { debounce, isEmpty, isString } from 'lodash'; // tslint:disable-next-line: no-import-side-effect no-submodule-imports import { ActionPanelOnionStatusLight } from '../dialog/OnionStatusPathDialog'; -import { switchHtmlToDarkTheme, switchHtmlToLightTheme } from '../../state/ducks/SessionTheme'; +import { switchHtmlToDarkTheme, switchHtmlToLightTheme } from '../../themes/SessionTheme'; import { loadDefaultRooms } from '../../session/apis/open_group_api/opengroupV2/ApiUtil'; import { getOpenGroupManager } from '../../session/apis/open_group_api/opengroupV2/OpenGroupManagerV2'; import { getSwarmPollingInstance } from '../../session/apis/snode_api'; diff --git a/ts/components/leftpane/LeftPane.tsx b/ts/components/leftpane/LeftPane.tsx index 0dd609fbf..bdf93d2b3 100644 --- a/ts/components/leftpane/LeftPane.tsx +++ b/ts/components/leftpane/LeftPane.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { useSelector } from 'react-redux'; import { SectionType } from '../../state/ducks/section'; -import { SessionTheme } from '../../state/ducks/SessionTheme'; +import { SessionTheme } from '../../themes/SessionTheme'; import { getLeftPaneLists } from '../../state/selectors/conversations'; import { getSearchResults, isSearching } from '../../state/selectors/search'; import { getFocusedSection, getOverlayMode } from '../../state/selectors/section'; diff --git a/ts/components/registration/SessionRegistrationView.tsx b/ts/components/registration/SessionRegistrationView.tsx index f3baadec0..c3b17e913 100644 --- a/ts/components/registration/SessionRegistrationView.tsx +++ b/ts/components/registration/SessionRegistrationView.tsx @@ -4,7 +4,7 @@ import { AccentText } from './AccentText'; import { RegistrationStages } from './RegistrationStages'; import { SessionIcon } from '../icon'; import { SessionToastContainer } from '../SessionToastContainer'; -import { SessionTheme } from '../../state/ducks/SessionTheme'; +import { SessionTheme } from '../../themes/SessionTheme'; import { Flex } from '../basic/Flex'; import { setSignInByLinking } from '../../util/storage'; diff --git a/ts/state/ducks/SessionTheme.tsx b/ts/themes/SessionTheme.tsx similarity index 100% rename from ts/state/ducks/SessionTheme.tsx rename to ts/themes/SessionTheme.tsx