Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth #34

Merged
merged 18 commits into from
Nov 10, 2024
Merged

auth #34

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions apps/api/app/api/[[...route]]/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { prisma } from "@repo/db";
import { handle } from "hono/vercel";
import { Hono } from "hono";
import { auth } from "@repo/auth";
Expand Down Expand Up @@ -99,6 +98,6 @@ const GET = handle(app);
const POST = handle(app);
const PATCH = handle(app);
const DELETE = handle(app);
export const OPTIONS = handle(app);
const OPTIONS = handle(app);

export { GET, PATCH, POST, DELETE };
export { GET, PATCH, POST, DELETE, OPTIONS };
5 changes: 2 additions & 3 deletions apps/www/app/(auth)/sign-in/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import SignIn from "@/components/custom/Sign-In";
import SignInComponent from "@/components/custom/signinComponent";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Update file naming convention to follow React best practices.

The import path signinComponent doesn't follow standard React component file naming conventions. React components and their files typically use PascalCase.

Consider renaming:

-import SignInComponent from "@/components/custom/signinComponent";
+import SignInComponent from "@/components/custom/SignInComponent";

And rename the actual file from signinComponent.tsx to SignInComponent.tsx.

Committable suggestion skipped: line range outside the PR's diff.


export default function page() {
return (
<div className="w-full h-screen flex items-center justify-center">
{" "}
<SignIn />
<SignInComponent />
</div>
);
}
4 changes: 2 additions & 2 deletions apps/www/app/(auth)/sign-up/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import SignUp from "../../../components/custom/Sign-up";
import SignUpComponent from "@/components/custom/signupComponent";

export default function page() {
return (
<div className="w-full h-screen flex items-center justify-center">
<SignUp />
<SignUpComponent />
</div>
);
}
16 changes: 0 additions & 16 deletions apps/www/app/sign-in/[[...sign-in]]/layout.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions apps/www/app/sign-in/[[...sign-in]]/page.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const formSchema = z.object({
password: z.string().min(8),
});

export default function SignIn() {
export default function SignInComponent() {
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
defaultValues: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const formSchema = z.object({
password: z.string().min(8),
});

export default function SignUp() {
export default function SignUpComponent() {
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
defaultValues: {
Expand Down
3 changes: 0 additions & 3 deletions apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-icons": "^1.3.1",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-scroll-area": "^1.2.0",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.3",
Expand All @@ -36,9 +35,7 @@
"next-themes": "^0.4.3",
"react": "19.0.0-rc-02c0e824-20241028",
"react-dom": "19.0.0-rc-02c0e824-20241028",

"react-hook-form": "^7.53.2",
"react-icons": "^5.3.0",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
Expand Down
51 changes: 0 additions & 51 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.