diff --git a/packages/frontend/src/pages/org-slug/projects/create/Template.tsx b/packages/frontend/src/pages/org-slug/projects/create/Template.tsx index 3d61792d..1f4236ff 100644 --- a/packages/frontend/src/pages/org-slug/projects/create/Template.tsx +++ b/packages/frontend/src/pages/org-slug/projects/create/Template.tsx @@ -14,11 +14,15 @@ import { } from 'components/shared/CustomIcon'; import { Heading } from 'components/shared/Heading'; import { Steps } from 'components/shared/Steps'; +import { useMediaQuery } from 'usehooks-ts'; // TODO: Set dynamic route for template and load details from DB const CreateWithTemplate = () => { const { orgSlug } = useParams(); + const isDesktopView = useMediaQuery('(min-width: 720px)'); // md: + const stepsOrientation = isDesktopView ? 'vertical' : 'horizontal'; + const stepperValues = [ { step: 1, @@ -47,7 +51,7 @@ const CreateWithTemplate = () => { ); return ( -
+
@@ -69,11 +73,15 @@ const CreateWithTemplate = () => {
-
-
- +
+
+
-
+