fix: [CAL-2040] add spinner when bookerState is loading#9873
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@afrieirham is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you for following the naming conventions! 🙏 |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
31f8692 to
fab6f79
Compare
| const shouldShowFormInDialog = shouldShowFormInDialogMap[layout]; | ||
|
|
||
| if (bookerState === "loading") { | ||
| return <Spinner />; |
There was a problem hiding this comment.
I don't think we want to show a spinner. I would prefer to return null if bookerState is still loading.
Let me know in case I am missing something and it was mentioned somewhere to use a spinner here (cc @Jaibles )
There was a problem hiding this comment.
updated
Screen.Recording.2023-07-09.at.2.02.47.PM.mp4
0caa3e0 to
1d4fb6e
Compare
|
This PR is being marked as stale due to inactivity. |
1d4fb6e to
0a25a34
Compare
CarinaWolli
left a comment
There was a problem hiding this comment.
Looks good to me now. Thank you 🙏
What does this PR do?
Add loading spinner when bookerState is loading to avoid showing monthly view if the default is set to weekly or column.
Fixes #9758
Screen.Recording.2023-07-02.at.12.31.05.AM.mp4
Type of change
How should this be tested?
Mandatory Tasks
Checklist