Skip to content

Commit 67a476a

Browse files
committed
Move placeholder outta component
1 parent 29b4ca0 commit 67a476a

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

client/me/site-blocks/list-item-placeholder.jsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

client/me/site-blocks/main.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
getSiteBlocksLastPage,
2020
} from 'calypso/state/reader/site-blocks/selectors';
2121
import SiteBlockListItem from './list-item';
22-
import SiteBlockListItemPlaceholder from './list-item-placeholder';
2322

2423
import './style.scss';
2524

@@ -36,7 +35,13 @@ class SiteBlockList extends Component {
3635

3736
renderPlaceholders() {
3837
return times( 2, ( i ) => (
39-
<SiteBlockListItemPlaceholder key={ 'site-block-list-item-placeholder-' + i } />
38+
<div
39+
aria-hidden="true"
40+
className="site-blocks__list-item is-placeholder"
41+
key={ 'site-block-list-item-placeholder-' + i }
42+
>
43+
<span className="site-blocks__list-item-placeholder-text">Blocked site</span>
44+
</div>
4045
) );
4146
}
4247

0 commit comments

Comments
 (0)