diff --git a/apps/admin-x-settings/src/components/settings/site/DesignModal.tsx b/apps/admin-x-settings/src/components/settings/site/DesignModal.tsx index 3ff5ed8aaa..3449dc87aa 100644 --- a/apps/admin-x-settings/src/components/settings/site/DesignModal.tsx +++ b/apps/admin-x-settings/src/components/settings/site/DesignModal.tsx @@ -2,6 +2,7 @@ import BrandSettings, {BrandSettingValues} from './designAndBranding/BrandSettin import React, {useEffect, useState} from 'react'; import ThemePreview from './designAndBranding/ThemePreview'; import ThemeSettings from './designAndBranding/ThemeSettings'; +import useQueryParams from '../../../hooks/useQueryParams'; import {CustomThemeSetting, useBrowseCustomThemeSettings, useEditCustomThemeSettings} from '@tryghost/admin-x-framework/api/customThemeSettings'; import {Icon, PreviewModalContent, StickyFooter, Tab, TabView} from '@tryghost/admin-x-design-system'; import {Setting, SettingValue, getSettingValues, useEditSettings} from '@tryghost/admin-x-framework/api/settings'; @@ -30,6 +31,7 @@ const Sidebar: React.FC<{ const {updateRoute} = useRouting(); const [selectedTab, setSelectedTab] = useState('brand'); const {data: {themes} = {}} = useBrowseThemes(); + const refParam = useQueryParams().getParam('ref'); const activeTheme = themes?.find(theme => theme.active); @@ -60,7 +62,11 @@ const Sidebar: React.FC<{