diff --git a/packages/console/src/pages/SignInExperience/components/Preview.tsx b/packages/console/src/pages/SignInExperience/components/Preview.tsx index 88da4d70a..a03817fc0 100644 --- a/packages/console/src/pages/SignInExperience/components/Preview.tsx +++ b/packages/console/src/pages/SignInExperience/components/Preview.tsx @@ -24,7 +24,7 @@ const Preview = ({ signInExperience, className }: Props) => { const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); const [language, setLanguage] = useState(Language.English); const [mode, setMode] = useState(AppearanceMode.LightMode); - const [platform, setPlatform] = useState<'desktopWeb' | 'mobile' | 'mobileWeb'>('mobile'); + const [platform, setPlatform] = useState<'desktopWeb' | 'mobile' | 'mobileWeb'>('desktopWeb'); const { data: allConnectors } = useSWR('/api/connectors'); const previewRef = useRef(null); @@ -150,14 +150,6 @@ const Preview = ({ signInExperience, className }: Props) => { - { - setPlatform('mobile'); - }} - > - {t('sign_in_exp.preview.native')} - { @@ -174,6 +166,14 @@ const Preview = ({ signInExperience, className }: Props) => { > {t('sign_in_exp.preview.mobile_web')} + { + setPlatform('mobile'); + }} + > + {t('sign_in_exp.preview.native')} +