Personal calendar manager
https://cal.maronato.dev
* fix(ui/login): better disabled state for login CTA The fix involves tracking the form submission with a dedicated state `submitInProgress` with React. `formState` from `react-hook-form` does not take time taken for the network call into account. For example, if the api takes 5 seconds to complete, we would expect the `formState.isSubmitting` to be true for `5` seconds. But, surprisingly this is not the case and `formState` from `react-hook-form` resolves immediately after it makes a successful connection to the endpoint. A dedicated state (with `useState`) is introduced that is enabled when the user clicks on the login CTA, and disabled when the api call is resolved, either successfully or with an error. * Update login.tsx * Update login.tsx * Fixes isSubmitting state Co-authored-by: zomars <zomars@me.com> |
||
---|---|---|
.github | ||
.husky | ||
.vscode | ||
apps | ||
packages | ||
scripts | ||
tests/config | ||
.editorconfig | ||
.env.appStore.example | ||
.env.example | ||
.eslintrc.js | ||
.gitignore | ||
.gitmodules | ||
.kodiak.toml | ||
.npmrc | ||
.nvmrc | ||
.prettierignore | ||
.prettierrc.js | ||
app.json | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
crowdin.yml | ||
LICENSE | ||
package.json | ||
Procfile | ||
README.md | ||
turbo.json | ||
vercel.sh | ||
yarn.lock |