Skip to content

fix: Routing form two "New" button issue.#9479

Merged
keithwillcode merged 9 commits into
calcom:mainfrom
Nikeshkumar-tk:routingFormButtonFix
Jun 13, 2023
Merged

fix: Routing form two "New" button issue.#9479
keithwillcode merged 9 commits into
calcom:mainfrom
Nikeshkumar-tk:routingFormButtonFix

Conversation

@Nikeshkumar-tk
Copy link
Copy Markdown
Contributor

@Nikeshkumar-tk Nikeshkumar-tk commented Jun 13, 2023

What does this PR do?

Fixes #9478

Type of change

  • Bug fix (non-breaking change which fixes an issue)

  • Verify wheather there is a New button in shell when routing forms are empty.

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2023 6:34am

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 13, 2023

@Nikeshkumar-tk is attempting to deploy a commit to the cal-staging Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@Nikeshkumar-tk Nikeshkumar-tk changed the title fix:Routing form two "New" button issue. fix: Routing form two "New" button issue. Jun 13, 2023
@keithwillcode keithwillcode added this pull request to the merge queue Jun 13, 2023
Merged via the queue into calcom:main with commit 8623175 Jun 13, 2023
@Nikeshkumar-tk Nikeshkumar-tk deleted the routingFormButtonFix branch June 13, 2023 15:32
<ShellMain
heading="Routing Forms"
CTA={hasPaidPlan && <NewFormButton />}
CTA={hasPaidPlan && forms?.length && <NewFormButton />}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nikeshkumar-tk It sets CTA to literal 0, when there are no forms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-1937] Routings forms has two 'New' buttons when no forms

4 participants