Skip to content

Commit

Permalink
refactor: refactor components structure in the project
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzpokorski committed Nov 28, 2023
1 parent 30aca7c commit 7078070
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/[channel]/(main)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion src/app/[channel]/(main)/orders/page.tsx
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const LoginButton = () => {
const { pending } = useFormStatus();
return (
<button
className="mt-2 self-start rounded bg-neutral-800 px-4 py-2 text-neutral-200 hover:bg-neutral-700 aria-disabled:opacity-80"
className="mt-2 rounded bg-neutral-800 px-4 py-2 text-neutral-200 hover:bg-neutral-700 aria-disabled:opacity-80"
type="submit"
aria-disabled={pending}
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LoginButton } from "./components/LoginButton";
import { LoginButton } from "@ui/atoms/LoginButton";
import { saleorAuthClient } from "@/app/config";

export async function LoginForm() {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"paths": {
"@/*": ["./src/*"],
"@ui/*": ["./src/components/*"]
"@ui/*": ["./src/ui/*"]
},
"types": ["react-dom/canary"]
},
Expand Down

0 comments on commit 7078070

Please sign in to comment.