From cf6da809621b4ebe8c9acedb035b689e7e1b60b1 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 25 Oct 2023 17:27:32 +0700
Subject: Update register page

---
 src-migrate/pages/register.tsx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'src-migrate/pages/register.tsx')

diff --git a/src-migrate/pages/register.tsx b/src-migrate/pages/register.tsx
index 4ba72cbc..bd5c37f4 100644
--- a/src-migrate/pages/register.tsx
+++ b/src-migrate/pages/register.tsx
@@ -1,12 +1,17 @@
 
 import BasicLayout from "@/core/components/layouts/BasicLayout"
+import { useWindowSize } from "usehooks-ts"
 import Register from "~/modules/register"
 
 const RegisterPage = () => {
+  const { width } = useWindowSize()
+
+  const Layout = width > 768 ? BasicLayout : "div";
+
   return (
-    <BasicLayout>
+    <Layout>
       <Register />
-    </BasicLayout>
+    </Layout>
   )
 }
 
-- 
cgit v1.2.3

