diff --git a/apps/admin-x-settings/src/admin-x-ds/global/modal/PreviewModal.tsx b/apps/admin-x-settings/src/admin-x-ds/global/modal/PreviewModal.tsx index 224da31852..ed7a2cf272 100644 --- a/apps/admin-x-settings/src/admin-x-ds/global/modal/PreviewModal.tsx +++ b/apps/admin-x-settings/src/admin-x-ds/global/modal/PreviewModal.tsx @@ -1,6 +1,5 @@ import ButtonGroup from '../ButtonGroup'; import DesktopChrome from '../chrome/DesktopChrome'; -import DesktopChromeHeader from '../chrome/DesktopChromeHeader'; import Heading from '../Heading'; import MobileChrome from '../chrome/MobileChrome'; import Modal, {ModalSize} from './Modal'; @@ -147,13 +146,14 @@ export const PreviewModalContent: React.FC = ({ preview = (
- {previewToolbar && } - toolbarLeft={leftToolbar && toolbarLeft} - toolbarRight={rightToolbar && toolbarRight} - />} + {previewToolbar &&
+ {leftToolbar &&
+ {toolbarLeft} +
} + {rightToolbar &&
+ {toolbarRight} +
} +
}
{preview}
diff --git a/apps/admin-x-settings/src/components/settings/site/theme/ThemePreview.tsx b/apps/admin-x-settings/src/components/settings/site/theme/ThemePreview.tsx index 019e23ba86..9aea53b67e 100644 --- a/apps/admin-x-settings/src/components/settings/site/theme/ThemePreview.tsx +++ b/apps/admin-x-settings/src/components/settings/site/theme/ThemePreview.tsx @@ -2,6 +2,7 @@ import Breadcrumbs from '../../../../admin-x-ds/global/Breadcrumbs'; import Button from '../../../../admin-x-ds/global/Button'; import ButtonGroup from '../../../../admin-x-ds/global/ButtonGroup'; import ConfirmationModal from '../../../../admin-x-ds/global/modal/ConfirmationModal'; +import DesktopChrome from '../../../../admin-x-ds/global/chrome/DesktopChrome'; import MobileChrome from '../../../../admin-x-ds/global/chrome/MobileChrome'; import NiceModal from '@ebay/nice-modal-react'; import PageHeader from '../../../../admin-x-ds/global/layout/PageHeader'; @@ -105,8 +106,10 @@ const ThemePreview: React.FC<{
{previewMode === 'desktop' ? -