From e74b5963ef2af0178f16db645f47ffac385873a6 Mon Sep 17 00:00:00 2001 From: Grzegorz Pokorski Date: Tue, 28 Nov 2023 19:05:45 +0100 Subject: [PATCH] refactor: refactor components structure in the project --- src/app/[channel]/(main)/login/page.tsx | 4 ++-- src/app/[channel]/(main)/orders/page.tsx | 2 +- .../LoginForm/components => atoms}/LoginButton.tsx | 2 +- src/ui/components/{LoginForm => }/LoginForm.tsx | 2 +- tsconfig.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename src/ui/{components/LoginForm/components => atoms}/LoginButton.tsx (67%) rename src/ui/components/{LoginForm => }/LoginForm.tsx (95%) diff --git a/src/app/[channel]/(main)/login/page.tsx b/src/app/[channel]/(main)/login/page.tsx index 10d4ed83f..f7bddd8f4 100644 --- a/src/app/[channel]/(main)/login/page.tsx +++ b/src/app/[channel]/(main)/login/page.tsx @@ -1,6 +1,6 @@ import { Suspense } from "react"; -import { Loader } from "@/ui/atoms/Loader"; -import { LoginForm } from "@/ui/components/LoginForm/LoginForm"; +import { LoginForm } from "@ui/components/LoginForm"; +import { Loader } from "@ui/atoms/Loader"; export default function LoginPage() { return ( diff --git a/src/app/[channel]/(main)/orders/page.tsx b/src/app/[channel]/(main)/orders/page.tsx index 8d73acdaf..09e21b47a 100644 --- a/src/app/[channel]/(main)/orders/page.tsx +++ b/src/app/[channel]/(main)/orders/page.tsx @@ -1,6 +1,6 @@ +import { LoginForm } from "@ui/components/LoginForm"; import { CurrentUserOrderListDocument } from "@/gql/graphql"; import { executeGraphQL } from "@/lib/graphql"; -import { LoginForm } from "@/ui/components/LoginForm/LoginForm"; import { OrderListItem } from "@/ui/components/OrderListItem"; export default async function OrderPage() { diff --git a/src/ui/components/LoginForm/components/LoginButton.tsx b/src/ui/atoms/LoginButton.tsx similarity index 67% rename from src/ui/components/LoginForm/components/LoginButton.tsx rename to src/ui/atoms/LoginButton.tsx index 4538e3ad1..2bffb37e5 100644 --- a/src/ui/components/LoginForm/components/LoginButton.tsx +++ b/src/ui/atoms/LoginButton.tsx @@ -6,7 +6,7 @@ export const LoginButton = () => { const { pending } = useFormStatus(); return (