Skip to content

Commit d766535

Browse files
committedJun 28, 2024
Fix minor typos/unused code
1 parent 8d28f89 commit d766535

File tree

10 files changed

+10
-11
lines changed

10 files changed

+10
-11
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ TODO
5757

5858
## Contributing
5959

60-
I'm hoping to keep this template as slim as possible and only add auth related features. Some future things that might be nice to add in could be MFA, sign out all devices, etc. I'm open to contributations, but please keep that core vision of "just auth related stuff" in mind.
60+
I'm hoping to keep this template as slim as possible and only add auth related features. Some future things that might be nice to add in could be MFA, sign out all devices, etc. I'm open to contributions, but please keep that core vision of "just auth related stuff" in mind.

‎src/app/(auth)/reset-password/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const registrationSchema = z
3434
path: ["passwordConfirmation"],
3535
});
3636

37-
export default function ResetPasswprdPage({
37+
export default function ResetPasswordPage({
3838
searchParams,
3939
}: {
4040
searchParams: { token: string };
@@ -63,7 +63,7 @@ export default function ResetPasswprdPage({
6363
{isSuccess && (
6464
<>
6565
<h1 className={cn(pageTitleStyles, "text-center")}>
66-
Password Upated
66+
Password Updated
6767
</h1>
6868
<Alert variant="success">
6969
<Terminal className="h-4 w-4" />

‎src/app/(auth)/sign-in/forgot-password/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const registrationSchema = z.object({
2626
email: z.string().email(),
2727
});
2828

29-
export default function ForgotPasswprdPage() {
29+
export default function ForgotPasswordPage() {
3030
const { toast } = useToast();
3131

3232
const { execute, isPending, isSuccess } = useServerAction(

‎src/app/(auth)/sign-in/page.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client";
22

3+
import * as React from "react";
34
import { Button, buttonVariants } from "@/components/ui/button";
45
import { cn } from "@/lib/utils";
56
import { btnStyles } from "@/styles/icons";

‎src/app/api/sign-out/route.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { lucia, validateRequest } from "@/lib/auth";
22
import { cookies } from "next/headers";
33
import { redirect } from "next/navigation";
44

5-
export async function GET(request: Request): Promise<Response> {
5+
export async function GET(): Promise<Response> {
66
await new Promise((resolve) => setTimeout(resolve, 1000));
77

88
const { session } = await validateRequest();

‎src/app/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const libre_franklin = Libre_Franklin({
2222
});
2323

2424
export const metadata: Metadata = {
25-
title: "WDC Templare",
25+
title: "WDC Template",
2626
icons: [
2727
{ rel: "icon", type: "image/png", sizes: "48x48", url: "/favicon.ico" },
2828
],

‎src/app/maintenance.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function Maintenance() {
22
return (
33
<div>
4-
<h1>Maintence</h1>
4+
<h1>Maintenance</h1>
55
</div>
66
);
77
}

‎src/app/signed-out/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function SignedOutPage() {
1414

1515
return (
1616
<div className="py-24 mx-auto max-w-[400px] space-y-6">
17-
<h1 className={pageTitleStyles}>Successfull Signed Out</h1>
17+
<h1 className={pageTitleStyles}>Successfully Signed Out</h1>
1818
<p className="text-xl">
1919
You have been successfully signed out. You can now sign in to your
2020
account.

‎src/data-access/reset-tokens.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
createPasswordResetToken;
2-
31
import { generateRandomToken } from "@/data-access/utils";
42
import { resetTokens } from "@/db/schema";
53
import { UserId } from "@/use-cases/types";

‎src/emails/magic-link.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { applicationName } from "@/app-config";
2020
export const BASE_URL = env.HOST_NAME;
2121

2222
export function MagicLinkEmail({ token }: { token: string }) {
23-
const previewText = `You're been invted to a group!`;
23+
const previewText = `You're been invited to a group!`;
2424
return (
2525
<Html>
2626
<Head />

0 commit comments

Comments
 (0)
Please sign in to comment.