From 274762cbfecd8700636a6fdcb30f14bb49822451 Mon Sep 17 00:00:00 2001 From: Andre H Date: Wed, 6 Mar 2024 14:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20feat:=20create=20project?= =?UTF-8?q?=20mobile=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org-slug/projects/create/Template.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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 = () => {
-
-
- +
+
+
-
+