diff --git a/client/hosting/overview/components/hosting-overview.tsx b/client/hosting/overview/components/hosting-overview.tsx index 840baead5fdb9..b936b83b2b8ca 100644 --- a/client/hosting/overview/components/hosting-overview.tsx +++ b/client/hosting/overview/components/hosting-overview.tsx @@ -5,10 +5,10 @@ import ActiveDomainsCard from 'calypso/hosting/overview/components/active-domain import PlanCard from 'calypso/hosting/overview/components/plan-card'; import QuickActionsCard from 'calypso/hosting/overview/components/quick-actions-card'; import SiteBackupCard from 'calypso/hosting/overview/components/site-backup-card'; -import SupportCard from 'calypso/hosting/server-settings/components/support-card'; import { isNotAtomicJetpack } from 'calypso/sites-dashboard/utils'; import { useSelector } from 'calypso/state'; import { getSelectedSite } from 'calypso/state/ui/selectors'; +import SupportCard from './support-card'; import './style.scss'; diff --git a/client/hosting/server-settings/components/support-card/index.js b/client/hosting/overview/components/support-card/index.js similarity index 100% rename from client/hosting/server-settings/components/support-card/index.js rename to client/hosting/overview/components/support-card/index.js diff --git a/client/hosting/server-settings/components/support-card/style.scss b/client/hosting/overview/components/support-card/style.scss similarity index 100% rename from client/hosting/server-settings/components/support-card/style.scss rename to client/hosting/overview/components/support-card/style.scss diff --git a/client/hosting/server-settings/github-deployments-card.tsx b/client/hosting/server-settings/github-deployments-card.tsx deleted file mode 100644 index 0666252baadc7..0000000000000 --- a/client/hosting/server-settings/github-deployments-card.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { useI18n } from '@wordpress/react-i18n'; -import { useDispatch } from 'react-redux'; -import { useSelector } from 'calypso/state'; -import { recordTracksEvent } from 'calypso/state/analytics/actions'; -import { getSelectedSiteSlug } from 'calypso/state/ui/selectors'; -import Banner from '../../components/banner'; -import SocialLogo from '../../components/social-logo'; -import { indexPage } from '../github-deployments/routes'; - -export const GitHubDeploymentsCard = () => { - const { __ } = useI18n(); - const dispatch = useDispatch(); - const siteSlug = useSelector( getSelectedSiteSlug ); - - return ( - } - disableCircle - callToAction={ __( 'Get started' ) } - href={ indexPage( siteSlug! ) } - title={ __( 'GitHub Deployments' ) } - onClick={ () => { - dispatch( recordTracksEvent( 'calypso_hosting_github_nudge_clicked' ) ); - } } - description={ __( - 'Effortlessly deploy themes, plugins, or your entire site directly from GitHub!' - ) } - /> - ); -}; diff --git a/client/hosting/server-settings/style.scss b/client/hosting/server-settings/style.scss index f77627bc8b1c3..ba7d01235c689 100644 --- a/client/hosting/server-settings/style.scss +++ b/client/hosting/server-settings/style.scss @@ -117,7 +117,7 @@ $areas: sftp, site-backup, support, phpmyadmin, staging-site, restore-plan-softw } &__main-layout-col { - .card:not(.github-deployments-card) { + .card { padding-left: 72px; > .card-icon, @@ -145,16 +145,6 @@ $areas: sftp, site-backup, support, phpmyadmin, staging-site, restore-plan-softw margin-right: auto; } - .github-deployments-card { - .banner__icons .banner__icon-no-circle { - margin-right: 13px; - } - - .banner__action { - margin-right: 0; - } - } - .happiness-engineers-tray { align-items: flex-start; display: flex;