diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-11-21 06:10:12 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-11-21 06:10:12 +0000 |
| commit | 0fc062268c71d53f8777c358b31e2a540d60d404 (patch) | |
| tree | 0183a00dcfb14583c7dfa80da082c21630afe375 /src-migrate/pages | |
| parent | 6ebe202147269100cd63ef125e877e8f693a27a1 (diff) | |
| parent | 6a6ce21e5a552b0dc6cd541710a87fd0a0fd9d20 (diff) | |
Merged in refactor/all (pull request #116)
Refactor/all
Diffstat (limited to 'src-migrate/pages')
| -rw-r--r-- | src-migrate/pages/_app.tsx | 7 | ||||
| -rw-r--r-- | src-migrate/pages/register.tsx | 18 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src-migrate/pages/_app.tsx b/src-migrate/pages/_app.tsx new file mode 100644 index 00000000..2dc82559 --- /dev/null +++ b/src-migrate/pages/_app.tsx @@ -0,0 +1,7 @@ +import '~/common/styles/fonts/Inter/inter.css' +import '~/common/styles/globals.css' +import type { AppProps } from "next/app" + +export default function MyApp({ Component, pageProps }: AppProps) { + return <Component {...pageProps} /> +}
\ No newline at end of file diff --git a/src-migrate/pages/register.tsx b/src-migrate/pages/register.tsx new file mode 100644 index 00000000..bd5c37f4 --- /dev/null +++ b/src-migrate/pages/register.tsx @@ -0,0 +1,18 @@ + +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 ( + <Layout> + <Register /> + </Layout> + ) +} + +export default RegisterPage
\ No newline at end of file |
