Personal calendar manager https://cal.maronato.dev
Go to file
Arun Kumar 7d7a1c5bbc
Fix login page CTA disabled state (#2832)
* 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>
2022-05-23 17:20:35 +00:00
.github Update check-types.yml 2022-05-18 15:08:58 -06:00
.husky Migrate website to monorepo (#1962) 2022-02-23 20:35:23 +00:00
.vscode Add vscode tasks.json (#2801) 2022-05-18 17:07:43 +00:00
apps Fix login page CTA disabled state (#2832) 2022-05-23 17:20:35 +00:00
packages Fix UI of dialog (#2788) 2022-05-23 13:17:00 +02:00
scripts Adds script to regulate staging deploys (#1979) 2022-02-24 12:17:49 -07:00
tests/config Consolidates test-results 2022-05-18 10:54:36 -06:00
.editorconfig Added .editorconfig file as suggested in #270 2021-07-03 17:02:26 +00:00
.env.appStore.example add invite link to Zapier setup page (#2696) 2022-05-11 04:58:10 +00:00
.env.example Embed Code Generator: Fix Preview HTML and Embed Lib path for production (#2688) 2022-05-06 15:56:26 +00:00
.eslintrc.js Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
.gitignore Separates appStore env file 2022-05-04 16:13:28 -06:00
.gitmodules Relocates admin to console 2022-05-20 17:40:51 -06:00
.kodiak.toml Update .kodiak.toml (#2142) 2022-03-14 11:21:16 +00:00
.npmrc chore: add some dx configs (#650) 2021-09-29 09:41:38 +00:00
.nvmrc chore: add some dx configs (#650) 2021-09-29 09:41:38 +00:00
.prettierignore Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
.prettierrc.js Linting (#2083) 2022-03-09 17:52:48 +00:00
app.json Feature: Verify login on signup with magic link. (#2122) 2022-04-21 14:32:25 -06:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-04-19 14:27:44 +01:00
CONTRIBUTING.md fix: update contributing (#2084) 2022-03-09 14:47:29 +00:00
crowdin.yml Merge pull request #1792 from calcom/fixes/crowdin 2022-02-10 14:32:00 -07:00
LICENSE Update LICENSE 2022-02-11 10:57:01 +00:00
package.json Update all Yarn dependencies (2022-05-16) (#2769) 2022-05-17 19:31:49 +00:00
Procfile fix: deployment setup to Heroku (#1834) 2022-02-14 16:29:48 +00:00
README.md fixing the hyperlink for open startup (#2777) 2022-05-17 16:03:05 +00:00
turbo.json Multiple E2E improvements 2022-05-11 10:46:52 -06:00
vercel.sh Update vercel.sh (#1983) 2022-02-25 13:13:56 -07:00
yarn.lock Type fixes 2022-05-17 15:32:54 -06:00