Skip to content

Commit

Permalink
Lift up A4A's layout-related components
Browse files Browse the repository at this point in the history
  • Loading branch information
okmttdhr committed Dec 17, 2024
1 parent 5252131 commit 98f80f3
Show file tree
Hide file tree
Showing 47 changed files with 219 additions and 223 deletions.
6 changes: 3 additions & 3 deletions client/a8c-for-agencies/components/page-placeholder/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import clsx from 'clsx';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderTitle as Title,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';

import './style.scss';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { Card, Badge } from '@automattic/components';
import { Icon, check } from '@wordpress/icons';
import { clsx } from 'clsx';
import { useTranslate } from 'i18n-calypso';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderTitle as Title,
LayoutHeaderActions as Actions,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useSelector, useDispatch } from 'calypso/state';
import { getActiveAgency } from 'calypso/state/a8c-for-agencies/agency/selectors';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Button } from '@wordpress/components';
import { useTranslate } from 'i18n-calypso';
import { useEffect } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import AgencyTierLevels from 'calypso/assets/images/a8c-for-agencies/agency-tier/agency-tier-levels.svg';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderTitle as Title,
LayoutHeaderActions as Actions,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import AgencyTierLevels from 'calypso/assets/images/a8c-for-agencies/agency-tier/agency-tier-levels.svg';
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import getTierPermissionData from '../lib/get-tier-permission-data';
Expand Down
10 changes: 5 additions & 5 deletions client/a8c-for-agencies/sections/client/client-landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import page from '@automattic/calypso-router';
import { addQueryArgs, getQueryArg, getQueryArgs } from '@wordpress/url';
import { useTranslate } from 'i18n-calypso';
import { useEffect } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderTitle as Title,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import {
A4A_CLIENT_SUBSCRIPTIONS_LINK,
A4A_OVERVIEW_LINK,
} from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderTitle as Title,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useSelector } from 'calypso/state';
import { hasAgency, hasFetchedAgency } from 'calypso/state/a8c-for-agencies/agency/selectors';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { useTranslate } from 'i18n-calypso';
import { useMemo, ReactNode, useState, useCallback } from 'react';
import { initialDataViewsState } from 'calypso/a8c-for-agencies/components/items-dashboard/constants';
import ItemsDataViews from 'calypso/a8c-for-agencies/components/items-dashboard/items-dataviews';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderTitle as Title,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import useFetchClientProducts from 'calypso/a8c-for-agencies/data/client/use-fetch-client-products';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderTitle as Title,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import useFetchClientSubscriptions from '../../hooks/use-fetch-client-subscriptions';
import {
SubscriptionAction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ import { getQueryArg } from '@wordpress/url';
import clsx from 'clsx';
import { useTranslate } from 'i18n-calypso';
import { useCallback, useEffect, useMemo, useState } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderActions as Actions,
LayoutHeaderSubtitle as Subtitle,
LayoutHeaderTitle as Title,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import {
A4A_MARKETPLACE_DOWNLOAD_PRODUCTS_LINK,
Expand All @@ -24,6 +17,13 @@ import SearchCard from 'calypso/components/search-card';
import useFetchDashboardSites from 'calypso/data/agency-dashboard/use-fetch-dashboard-sites';
import areLicenseKeysAssignableToMultisite from 'calypso/jetpack-cloud/sections/partner-portal/lib/are-license-keys-assignable-to-multisite';
import isWooCommerceProduct from 'calypso/jetpack-cloud/sections/partner-portal/lib/is-woocommerce-product';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderActions as Actions,
LayoutHeaderSubtitle as Subtitle,
LayoutHeaderTitle as Title,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { addQueryArgs } from 'calypso/lib/url';
import { useDispatch, useSelector } from 'calypso/state';
import { getActiveAgencyId } from 'calypso/state/a8c-for-agencies/agency/selectors';
Expand Down
10 changes: 5 additions & 5 deletions client/a8c-for-agencies/sections/marketplace/checkout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import { getQueryArg } from '@wordpress/url';
import clsx from 'clsx';
import { useTranslate } from 'i18n-calypso';
import { useCallback, useMemo, useContext, useEffect, useRef, useState } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderBreadcrumb as Breadcrumb,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import {
A4A_MARKETPLACE_LINK,
A4A_SITES_LINK,
} from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderBreadcrumb as Breadcrumb,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useDispatch, useSelector } from 'calypso/state';
import { getActiveAgency } from 'calypso/state/a8c-for-agencies/agency/selectors';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ import page from '@automattic/calypso-router';
import { useBreakpoint } from '@automattic/viewport-react';
import { useTranslate } from 'i18n-calypso';
import { useCallback } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderActions as Actions,
LayoutHeaderBreadcrumb as Breadcrumb,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import PressableUsageLimitNotice from 'calypso/a8c-for-agencies/components/pressable-usage-limit-notice';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import {
Expand All @@ -17,6 +11,12 @@ import {
A4A_MARKETPLACE_LINK,
} from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import QueryProductsList from 'calypso/components/data/query-products-list';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderActions as Actions,
LayoutHeaderBreadcrumb as Breadcrumb,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import { APIProductFamilyProduct } from 'calypso/state/partner-portal/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ import { useBreakpoint } from '@automattic/viewport-react';
import clsx from 'clsx';
import { useTranslate } from 'i18n-calypso';
import { useCallback } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderActions as Actions,
LayoutHeaderBreadcrumb as Breadcrumb,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import PressableUsageLimitNotice from 'calypso/a8c-for-agencies/components/pressable-usage-limit-notice';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import {
A4A_MARKETPLACE_CHECKOUT_LINK,
A4A_MARKETPLACE_LINK,
} from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import QueryProductsList from 'calypso/components/data/query-products-list';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderActions as Actions,
LayoutHeaderBreadcrumb as Breadcrumb,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import ReferralToggle from '../common/referral-toggle';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { Button } from '@automattic/components';
import { Icon, external } from '@wordpress/icons';
import { useTranslate } from 'i18n-calypso';
import { useCallback, useContext, useEffect } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderBreadcrumb as Breadcrumb,
LayoutHeaderActions as Actions,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import {
A4A_MARKETPLACE_CHECKOUT_LINK,
A4A_MARKETPLACE_HOSTING_LINK,
A4A_MARKETPLACE_LINK,
} from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderBreadcrumb as Breadcrumb,
LayoutHeaderActions as Actions,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import { APIProductFamilyProduct } from 'calypso/state/partner-portal/types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { getQueryArg } from '@wordpress/url';
import { useTranslate } from 'i18n-calypso';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderTitle as Title,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import AssignLicenseStepProgress from '../../assign-license-step-progress';
import DownloadProductsForm from '../../download-products-form';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { useBreakpoint } from '@automattic/viewport-react';
import clsx from 'clsx';
import { useTranslate } from 'i18n-calypso';
import { useEffect, useState } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderActions as Actions,
LayoutHeaderBreadcrumb as Breadcrumb,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import {
A4A_MARKETPLACE_CHECKOUT_LINK,
A4A_MARKETPLACE_LINK,
} from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import useProductsQuery from 'calypso/a8c-for-agencies/data/marketplace/use-products-query';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderActions as Actions,
LayoutHeaderBreadcrumb as Breadcrumb,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useSelector } from 'calypso/state';
import getSites from 'calypso/state/selectors/get-sites';
import ReferralToggle from '../common/referral-toggle';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { JetpackLogo, WooLogo } from '@automattic/components';
import { useTranslate } from 'i18n-calypso';
import { useMemo } from 'react';
import { A4A_MARKETPLACE_PRODUCTS_LINK } from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import LayoutNavigation, {
LayoutNavigationItemProps,
LayoutNavigationTabs,
buildNavItems,
} from 'calypso/a8c-for-agencies/components/layout/nav';
import { A4A_MARKETPLACE_PRODUCTS_LINK } from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
} from 'calypso/layout/multi-site-dashboard/nav';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ import {
} from '@wordpress/icons';
import { useTranslate } from 'i18n-calypso';
import { useCallback, useContext, useState } from 'react';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderBreadcrumb as Breadcrumb,
LayoutHeaderActions as Actions,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import {
A4A_MARKETPLACE_CHECKOUT_LINK,
A4A_MARKETPLACE_HOSTING_LINK,
A4A_MARKETPLACE_LINK,
} from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import useWPCOMOwnedSites from 'calypso/a8c-for-agencies/hooks/use-wpcom-owned-sites';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderBreadcrumb as Breadcrumb,
LayoutHeaderActions as Actions,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import { APIProductFamilyProduct } from 'calypso/state/partner-portal/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import clsx from 'clsx';
import { useTranslate } from 'i18n-calypso';
import { useCallback, useMemo, useState } from 'react';
import A4APaymentDelayedNotice from 'calypso/a8c-for-agencies/components/a4a-payment-delayed-notice';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import LayoutHeader, {
LayoutHeaderBreadcrumb as Breadcrumb,
LayoutHeaderActions as Actions,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import { A4A_MIGRATIONS_LINK } from 'calypso/a8c-for-agencies/components/sidebar-menu/lib/constants';
import TextPlaceholder from 'calypso/a8c-for-agencies/components/text-placeholder';
import useGetTipaltiPayee from 'calypso/a8c-for-agencies/sections/referrals/hooks/use-get-tipalti-payee';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderBreadcrumb as Breadcrumb,
LayoutHeaderActions as Actions,
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import MigrationsCommissionsList from '../../commissions-list';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { Button } from '@wordpress/components';
import { useTranslate } from 'i18n-calypso';
import { useCallback } from 'react';
import { CONTACT_URL_FOR_MIGRATION_OFFER_HASH_FRAGMENT } from 'calypso/a8c-for-agencies/components/a4a-contact-support-widget';
import Layout from 'calypso/a8c-for-agencies/components/layout';
import LayoutBody from 'calypso/a8c-for-agencies/components/layout/body';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
import Layout from 'calypso/layout/multi-site-dashboard';
import LayoutHeader, {
LayoutHeaderTitle as Title,
LayoutHeaderActions as Actions,
} from 'calypso/a8c-for-agencies/components/layout/header';
import LayoutTop from 'calypso/a8c-for-agencies/components/layout/top';
import MobileSidebarNavigation from 'calypso/a8c-for-agencies/components/sidebar/mobile-sidebar-navigation';
} from 'calypso/layout/multi-site-dashboard/header';
import LayoutTop from 'calypso/layout/multi-site-dashboard/top';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import MigrateSiteButton from './migrate-site-button';
Expand Down
Loading

0 comments on commit 98f80f3

Please sign in to comment.