From 67e1082cf57944221fa60bd3c65ef8e3de80ebf9 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 14 Aug 2020 12:44:58 -0500 Subject: [PATCH] Updated placeholder component structures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - placeholder component structures --- .../placeholder/account_placeholder.js | 18 +++--- .../placeholder/comment_placeholder.js | 4 -- .../group_list_item_placeholder.js | 14 +++-- .../placeholder/list_item_placeholder.js | 16 ++--- .../placeholder/media_gallery_placeholder.js | 6 -- .../placeholder/notification_placeholder.js | 58 ++++++++++--------- .../placeholder/placeholder_layout.js | 37 ++++++------ .../profile_info_panel_placeholder.js | 2 +- 8 files changed, 76 insertions(+), 79 deletions(-) diff --git a/app/javascript/gabsocial/components/placeholder/account_placeholder.js b/app/javascript/gabsocial/components/placeholder/account_placeholder.js index cf8d789e..3f548186 100644 --- a/app/javascript/gabsocial/components/placeholder/account_placeholder.js +++ b/app/javascript/gabsocial/components/placeholder/account_placeholder.js @@ -2,12 +2,7 @@ import { CX } from '../../constants' import { getRandomInt } from '../../utils/numbers' import PlaceholderLayout from './placeholder_layout' -export default class AccountPlaceholder extends PureComponent { - - static propTypes = { - isLast: PropTypes.bool, - isSmall: PropTypes.bool, - } +class AccountPlaceholder extends PureComponent { render() { const { isLast, isSmall } = this.props @@ -38,11 +33,18 @@ export default class AccountPlaceholder extends PureComponent {