-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A4A: Show placeholder when team member list is fetching. (#94139)
* Create a reusable page placeholder. * Update the landing page to use the reusable page. * Update team section to use the page placeholder.
- Loading branch information
1 parent
ad609d1
commit 4b4c0f9
Showing
6 changed files
with
51 additions
and
77 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
client/a8c-for-agencies/components/page-placeholder/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import clsx from 'clsx'; | ||
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 './style.scss'; | ||
|
||
type Props = { | ||
title?: string; | ||
className?: string; | ||
}; | ||
|
||
export default function PagePlaceholder( { title, className }: Props ) { | ||
return ( | ||
<Layout className={ clsx( 'a4a-page-placeholder', className ) } title={ title } wide> | ||
<LayoutTop> | ||
<LayoutHeader> | ||
<Title> | ||
<div className="a4a-page-placeholder__title-placeholder"></div> | ||
</Title> | ||
</LayoutHeader> | ||
</LayoutTop> | ||
<LayoutBody> | ||
<div className="a4a-page-placeholder__section-placeholder"> | ||
<div className="a4a-page-placeholder__section-placeholder-title"></div> | ||
<div className="a4a-page-placeholder__section-placeholder-body"></div> | ||
<div className="a4a-page-placeholder__section-placeholder-footer"></div> | ||
</div> | ||
</LayoutBody> | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters