From fa4881986c9be6b1ce9b449f12831a65add3f5f7 Mon Sep 17 00:00:00 2001 From: katinthehatsite Date: Thu, 16 Jan 2025 08:40:34 +0100 Subject: [PATCH] Studio: Open the site's URL from the Sync connect popup (#799) * Make links open in sync modal --------- Co-authored-by: Kateryna Kodonenko --- src/components/sync-sites-modal-selector.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/sync-sites-modal-selector.tsx b/src/components/sync-sites-modal-selector.tsx index a2398e184..af88eaa25 100644 --- a/src/components/sync-sites-modal-selector.tsx +++ b/src/components/sync-sites-modal-selector.tsx @@ -5,6 +5,7 @@ import { useState, useEffect } from 'react'; import { useOffline } from '../hooks/use-offline'; import { cx } from '../lib/cx'; import { getIpcApi } from '../lib/get-ipc-api'; +import { ArrowIcon } from './arrow-icon'; import { Badge } from './badge'; import Button from './button'; import { CreateButton } from './connect-create-buttons'; @@ -206,11 +207,19 @@ function SiteItem( {
{ site.name }
-
getIpcApi().openURL( site.url ) } > { site.url.replace( /^https?:\/\//, '' ) } -
+ + { isSyncable && (