This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f404b1f
commit 7bf9aac
Showing
6 changed files
with
7 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import React from 'react' | ||
import { BrowserRouter, Route, Routes, Navigate } from 'react-router-dom' | ||
// @ts-expect-error | ||
Check failure on line 3 in src/main.tsx GitHub Actions / Lint
|
||
import { createRoot } from 'react-dom/client' | ||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query' | ||
import { useLocalStorage } from '@uidotdev/usehooks' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,8 @@ export default function Signin(): ReactElement { | |
</div> | ||
|
||
<div className="mt-5"> | ||
<form> | ||
{/* @ts-expect-error */} | ||
Check failure on line 51 in src/pages/auth/signin.tsx GitHub Actions / Lint
|
||
<form onSubmit={mutation.mutate}> | ||
<div className="grid gap-y-4"> | ||
{mutation.isError && ( | ||
<p className="text-sm text-red-600 font-bold"> | ||
|
@@ -93,7 +94,6 @@ export default function Signin(): ReactElement { | |
<button | ||
type="submit" | ||
className="w-full mt-4 py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-sky-700 text-white hover:bg-sky-900 disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600" | ||
onClick={mutation.mutate} | ||
disabled={mutation.isPending} | ||
> | ||
{mutation.isPending ? <Spinner /> : 'Sign in'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,8 @@ export default function Signup(): ReactElement { | |
</div> | ||
|
||
<div className="mt-5"> | ||
<form> | ||
{/* @ts-expect-error */} | ||
Check failure on line 47 in src/pages/auth/signup.tsx GitHub Actions / Lint
|
||
<form onSubmit={mutation.mutate}> | ||
<div className="grid gap-y-4"> | ||
{mutation.isError && ( | ||
<p className="text-sm text-red-600 font-bold"> | ||
|
@@ -106,7 +107,6 @@ export default function Signup(): ReactElement { | |
<button | ||
type="submit" | ||
className="w-full mt-4 py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-sky-700 text-white hover:bg-sky-900 disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600" | ||
onClick={mutation.mutate} | ||
disabled={mutation.isPending} | ||
> | ||
{mutation.isPending ? <Spinner /> : 'Sign up'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters