Skip to content

Studio: Remove "Create new site" button from the Sync tab for no connections - #771

Merged
katinthehatsite merged 4 commits into
trunkfrom
fix/remove-create-site-button-no-connections-screen
Jan 9, 2025
Merged

Studio: Remove "Create new site" button from the Sync tab for no connections#771
katinthehatsite merged 4 commits into
trunkfrom
fix/remove-create-site-button-no-connections-screen

Conversation

@katinthehatsite

Copy link
Copy Markdown
Contributor

Related issues

Closes https://github.com/Automattic/dotcom-forge/issues/10197

Proposed Changes

This PR removes the Create a new site button when there are no sites connected on the Sync tab:

Screenshot 2025-01-03 at 10 48 44 AM

Testing Instructions

  • Pull the changes from this branch
  • Start the app with npm install && npm start
  • Navigate to the Sync tab
  • Make sure that you have no sites connected
  • Observe that the button to create a site is not present in that view and that you can only see the Connect site button

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@katinthehatsite katinthehatsite self-assigned this Jan 3, 2025
@katinthehatsite
katinthehatsite requested a review from a team January 3, 2025 17:17

@wojtekn wojtekn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The code change looks good, works as expected.

@katinthehatsite
katinthehatsite merged commit 56eefc7 into trunk Jan 9, 2025
@katinthehatsite
katinthehatsite deleted the fix/remove-create-site-button-no-connections-screen branch January 9, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants