From 25459392daa215397f4565e8f3e1975a57bc70e3 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sat, 25 Jun 2022 21:26:20 +0530 Subject: [PATCH] fix import --- .../Collections/CollectionSelector/index.tsx | 2 +- src/components/Collections/CollectionShare/index.tsx | 5 +++-- src/components/MemberSubscriptionManage.tsx | 2 +- src/components/PhotoSwipe/InfoDialog/index.tsx | 2 +- src/components/RecoveryKey/index.tsx | 2 +- src/components/UploadProgress/dialog.tsx | 2 +- src/components/pages/gallery/PlanSelector/index.tsx | 2 +- .../pages/gallery/UploadStrategyChoiceModal.tsx | 12 ++++++------ src/themes/darkThemeOptions.tsx | 2 +- 9 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/components/Collections/CollectionSelector/index.tsx b/src/components/Collections/CollectionSelector/index.tsx index 9bacaf13d..aae3f83ad 100644 --- a/src/components/Collections/CollectionSelector/index.tsx +++ b/src/components/Collections/CollectionSelector/index.tsx @@ -1,6 +1,6 @@ import React, { useContext, useEffect, useMemo } from 'react'; import { Collection, CollectionSummaries } from 'types/collection'; -import DialogTitleWithCloseButton from 'components/DialogBox/titleWithCloseButton'; +import DialogTitleWithCloseButton from 'components/DialogBox/TitleWithCloseButton'; import { isSystemCollection } from 'utils/collection'; import { AppContext } from 'pages/_app'; import { AllCollectionDialog } from 'components/Collections/AllCollections/dialog'; diff --git a/src/components/Collections/CollectionShare/index.tsx b/src/components/Collections/CollectionShare/index.tsx index f0b878350..a60f0e9f4 100644 --- a/src/components/Collections/CollectionShare/index.tsx +++ b/src/components/Collections/CollectionShare/index.tsx @@ -2,8 +2,9 @@ import EmailShare from './emailShare'; import React, { useContext } from 'react'; import constants from 'utils/strings/constants'; import { Collection } from 'types/collection'; -import { dialogCloseHandler } from 'components/DialogBox/base'; -import DialogTitleWithCloseButton from 'components/DialogBox/titleWithCloseButton'; +import DialogTitleWithCloseButton, { + dialogCloseHandler, +} from 'components/DialogBox/TitleWithCloseButton'; import DialogContent from '@mui/material/DialogContent'; import { Divider } from '@mui/material'; diff --git a/src/components/MemberSubscriptionManage.tsx b/src/components/MemberSubscriptionManage.tsx index b592fc7a5..7c7b3090b 100644 --- a/src/components/MemberSubscriptionManage.tsx +++ b/src/components/MemberSubscriptionManage.tsx @@ -5,7 +5,7 @@ import React, { useContext } from 'react'; import billingService from 'services/billingService'; import { getFamilyPlanAdmin } from 'utils/billing'; import constants from 'utils/strings/constants'; -import DialogTitleWithCloseButton from './DialogBox/titleWithCloseButton'; +import DialogTitleWithCloseButton from './DialogBox/TitleWithCloseButton'; export function MemberSubscriptionManage({ open, userDetails, onClose }) { const { setDialogMessage, isMobile } = useContext(AppContext); diff --git a/src/components/PhotoSwipe/InfoDialog/index.tsx b/src/components/PhotoSwipe/InfoDialog/index.tsx index 603472986..d232bdf6f 100644 --- a/src/components/PhotoSwipe/InfoDialog/index.tsx +++ b/src/components/PhotoSwipe/InfoDialog/index.tsx @@ -5,7 +5,7 @@ import { RenderFileName } from './RenderFileName'; import { ExifData } from './ExifData'; import { RenderCreationTime } from './RenderCreationTime'; import { RenderInfoItem } from './RenderInfoItem'; -import DialogTitleWithCloseButton from 'components/DialogBox/titleWithCloseButton'; +import DialogTitleWithCloseButton from 'components/DialogBox/TitleWithCloseButton'; import { Dialog, DialogContent, Link, styled, Typography } from '@mui/material'; import { AppContext } from 'pages/_app'; diff --git a/src/components/RecoveryKey/index.tsx b/src/components/RecoveryKey/index.tsx index ca01dd149..a0e22d293 100644 --- a/src/components/RecoveryKey/index.tsx +++ b/src/components/RecoveryKey/index.tsx @@ -13,7 +13,7 @@ import { import * as bip39 from 'bip39'; import { DashedBorderWrapper } from './styledComponents'; import { AppContext } from 'pages/_app'; -import DialogTitleWithCloseButton from 'components/DialogBox/titleWithCloseButton'; +import DialogTitleWithCloseButton from 'components/DialogBox/TitleWithCloseButton'; // mobile client library only supports english. bip39.setDefaultWordlist('english'); diff --git a/src/components/UploadProgress/dialog.tsx b/src/components/UploadProgress/dialog.tsx index 00b446c81..e802a83a0 100644 --- a/src/components/UploadProgress/dialog.tsx +++ b/src/components/UploadProgress/dialog.tsx @@ -8,8 +8,8 @@ import { InProgressSection } from './inProgressSection'; import { ResultSection } from './resultSection'; import { NotUploadSectionHeader } from './styledComponents'; import { getOSSpecificDesktopAppDownloadLink } from 'utils/common'; -import { dialogCloseHandler } from 'components/DialogBox/base'; import UploadProgressContext from 'contexts/uploadProgress'; +import { dialogCloseHandler } from 'components/DialogBox/TitleWithCloseButton'; export function UploadProgressDialog() { const { open, onClose, uploadStage, finishedUploads } = useContext( diff --git a/src/components/pages/gallery/PlanSelector/index.tsx b/src/components/pages/gallery/PlanSelector/index.tsx index f63eea60e..026af6baa 100644 --- a/src/components/pages/gallery/PlanSelector/index.tsx +++ b/src/components/pages/gallery/PlanSelector/index.tsx @@ -24,7 +24,7 @@ import { AppContext } from 'pages/_app'; import Plans from './plans'; import { Box, Dialog, DialogContent, styled } from '@mui/material'; import { CenteredFlex } from 'components/Container'; -import DialogTitleWithCloseButton from 'components/DialogBox/titleWithCloseButton'; +import DialogTitleWithCloseButton from 'components/DialogBox/TitleWithCloseButton'; interface Props { modalView: boolean; diff --git a/src/components/pages/gallery/UploadStrategyChoiceModal.tsx b/src/components/pages/gallery/UploadStrategyChoiceModal.tsx index 523dcd933..a66675cec 100644 --- a/src/components/pages/gallery/UploadStrategyChoiceModal.tsx +++ b/src/components/pages/gallery/UploadStrategyChoiceModal.tsx @@ -1,8 +1,8 @@ -import { Button, Dialog, DialogContent } from '@mui/material'; +import { Button, Dialog, DialogContent, Typography } from '@mui/material'; import { CenteredFlex, SpaceBetweenFlex } from 'components/Container'; -import { dialogCloseHandler } from 'components/DialogBox/base'; -import MessageText from 'components/DialogBox/messageText'; -import DialogTitleWithCloseButton from 'components/DialogBox/titleWithCloseButton'; +import DialogTitleWithCloseButton, { + dialogCloseHandler, +} from 'components/DialogBox/TitleWithCloseButton'; import React from 'react'; import constants from 'utils/strings/constants'; @@ -28,9 +28,9 @@ function UploadStrategyChoiceModal({ - + {constants.UPLOAD_STRATEGY_CHOICE} - +