@@ -66,16 +62,16 @@ export default class NotificationPlaceholder extends PureComponent {
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -85,4 +81,10 @@ export default class NotificationPlaceholder extends PureComponent {
)
}
-}
\ No newline at end of file
+}
+
+NotificationPlaceholder.propTypes = {
+ isLast: PropTypes.bool,
+}
+
+export default NotificationPlaceholder
diff --git a/app/javascript/gabsocial/components/placeholder/placeholder_layout.js b/app/javascript/gabsocial/components/placeholder/placeholder_layout.js
index 9eb71bff..8139e4dc 100644
--- a/app/javascript/gabsocial/components/placeholder/placeholder_layout.js
+++ b/app/javascript/gabsocial/components/placeholder/placeholder_layout.js
@@ -2,26 +2,8 @@ import { defineMessages, injectIntl } from 'react-intl'
import ContentLoader from 'react-content-loader'
import { DEFAULT_THEME } from '../../constants'
-const messages = defineMessages({
- loading: { id: 'loading_indicator.label', defaultMessage: 'Loading..' },
-})
-
-const mapStateToProps = (state) => ({
- theme: state.getIn(['settings', 'displayOptions', 'theme'], DEFAULT_THEME),
-})
-
-export default
-@injectIntl
-@connect(mapStateToProps)
class PlaceholderLayout extends PureComponent {
- static propTypes = {
- children: PropTypes.node,
- intl: PropTypes.object.isRequired,
- theme: PropTypes.string.isRequired,
- viewBox: PropTypes.object.isRequired,
- }
-
render() {
const {
intl,
@@ -46,4 +28,21 @@ class PlaceholderLayout extends PureComponent {
)
}
-}
\ No newline at end of file
+}
+
+const messages = defineMessages({
+ loading: { id: 'loading_indicator.label', defaultMessage: 'Loading...' },
+})
+
+const mapStateToProps = (state) => ({
+ theme: state.getIn(['settings', 'displayOptions', 'theme'], DEFAULT_THEME),
+})
+
+PlaceholderLayout.propTypes = {
+ children: PropTypes.node,
+ intl: PropTypes.object.isRequired,
+ theme: PropTypes.string.isRequired,
+ viewBox: PropTypes.object.isRequired,
+}
+
+export default injectIntl(connect(mapStateToProps)(PlaceholderLayout))
diff --git a/app/javascript/gabsocial/components/placeholder/profile_info_panel_placeholder.js b/app/javascript/gabsocial/components/placeholder/profile_info_panel_placeholder.js
index bc02de51..4cecca84 100644
--- a/app/javascript/gabsocial/components/placeholder/profile_info_panel_placeholder.js
+++ b/app/javascript/gabsocial/components/placeholder/profile_info_panel_placeholder.js
@@ -4,7 +4,7 @@ export default class ProfileInfoPanelPlaceholder extends PureComponent {
render() {
return (
-