Skip to content

Commit

Permalink
fix: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bencodes07 committed Mar 30, 2024
1 parent cefd5d7 commit 9293ed2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
47 changes: 24 additions & 23 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const LoginForm = () => {
}, [formState, toast, dispatch]);

return (
<>
<React.Fragment>
<Button className="absolute right-4 top-4 bg-subtle px-6 text-foreground">
Create a Company <FaArrowRight className="ml-2" />
</Button>
Expand All @@ -63,7 +63,7 @@ const LoginForm = () => {
<h2 className="text-3xl font-semibold">Log In</h2>
<p className="text-base">
Don&apos;t have an account yet?{" "}
<Link className="text-primary hover:underline" href="/signup">
<Link className="text-primary hover:underline" href={"/signup"}>
Sign Up
</Link>
</p>
Expand All @@ -86,6 +86,7 @@ const LoginForm = () => {
<p className="flex w-[10%] items-center justify-center">or</p>
<Separator className="w-[45%] bg-foreground" />
</div>
</div>

<form action={formAction} className="flex size-full flex-col justify-center gap-y-6">
<Input
Expand All @@ -109,30 +110,30 @@ const LoginForm = () => {
)}
/>

{formState?.message === "error" && (
<div className="my-[-10px] flex flex-col items-start justify-start">
<p className="text-sm text-red-700 empty:hidden">{formState.errors?.email}</p>
<p className="text-sm text-red-700 empty:hidden">{formState.errors?.password}</p>
</div>
)}
<div className="flex w-full items-center justify-between">
<div className="flex items-center justify-start gap-x-2 text-foreground">
<Checkbox defaultChecked id="remember" />
<div className="grid gap-1.5 leading-none">
<label
htmlFor="remember"
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
Remember me
</label>
</div>
{formState?.message === "error" && (
<div className="my-[-10px] flex flex-col items-start justify-start">
<p className="text-sm text-red-700 empty:hidden">{formState.errors?.email}</p>
<p className="text-sm text-red-700 empty:hidden">{formState.errors?.password}</p>
</div>
)}
<div className="flex w-full items-center justify-between">
<div className="flex items-center justify-start gap-x-2 text-foreground">
<Checkbox defaultChecked id="remember" />
<div className="grid gap-1.5 leading-none">
<label
htmlFor="remember"
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
Remember me
</label>
</div>
<Link className="text-sm text-primary hover:underline" href="/forgot-password">
Forgot password?
</Link>
</div>
<Link className="text-sm text-primary hover:underline" href={"/forgot-password"}>
<Link className="text-sm text-primary hover:underline" href="/forgot-password">
Forgot password?
</Link>
</div>
<Link className="text-sm text-primary hover:underline" href={"/forgot-password"}>
Forgot password?
</Link>
<SubmitButton />
</form>
</div>
Expand All @@ -141,7 +142,7 @@ const LoginForm = () => {
<h2 className="mx-10 text-center">To keep connected with us please login with your info </h2>
</div>
</div>
</>
</React.Fragment>
);
};

Expand Down
Empty file added src/components/ui/.eslintignore
Empty file.
5 changes: 2 additions & 3 deletions src/lib/graphql.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client";
import { ApolloClient, HttpLink, InMemoryCache, type NormalizedCacheObject } from "@apollo/client";
import { registerApolloClient } from "@apollo/experimental-nextjs-app-support/rsc";

// eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-assignment
export const { getClient } = registerApolloClient(() => {
export const { getClient } = registerApolloClient((): ApolloClient<NormalizedCacheObject> => {
return new ApolloClient({
cache: new InMemoryCache(),
link: new HttpLink({
Expand Down

0 comments on commit 9293ed2

Please sign in to comment.