diff --git a/app/javascript/mastodon/components/error_boundary.js b/app/javascript/mastodon/components/error_boundary.js index 800b1c270..6f763619c 100644 --- a/app/javascript/mastodon/components/error_boundary.js +++ b/app/javascript/mastodon/components/error_boundary.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; -import { version, source_url } from 'mastodon/initial_state'; +import { source_url, version } from 'mastodon/initial_state'; export default class ErrorBoundary extends React.PureComponent { @@ -10,17 +10,17 @@ export default class ErrorBoundary extends React.PureComponent { }; state = { - hasError: false, - stackTrace: undefined, + hasError : false, + stackTrace : undefined, componentStack: undefined, }; - componentDidCatch (error, info) { + componentDidCatch(error, info) { this.setState({ - hasError: true, - stackTrace: error.stack, + hasError : true, + stackTrace : error.stack, componentStack: info && info.componentStack, - copied: false, + copied : false, }); } @@ -28,7 +28,7 @@ export default class ErrorBoundary extends React.PureComponent { const { stackTrace } = this.state; const textarea = document.createElement('textarea'); - textarea.textContent = stackTrace; + textarea.textContent = stackTrace; textarea.style.position = 'fixed'; document.body.appendChild(textarea); @@ -44,7 +44,7 @@ export default class ErrorBoundary extends React.PureComponent { this.setState({ copied: true }); setTimeout(() => this.setState({ copied: false }), 700); - } + }; render() { const { hasError, copied } = this.state; @@ -54,13 +54,32 @@ export default class ErrorBoundary extends React.PureComponent { } return ( -
-
-

-

-

Mastodon v{version} · ·

-
-
+
+
+

+

+

Mastodon v{version} · ·

+
+
); } diff --git a/app/javascript/mastodon/features/ui/components/link_footer.js b/app/javascript/mastodon/features/ui/components/link_footer.js index dd0a2d47d..f3fd69e47 100644 --- a/app/javascript/mastodon/features/ui/components/link_footer.js +++ b/app/javascript/mastodon/features/ui/components/link_footer.js @@ -106,7 +106,10 @@ class LinkFooter extends React.PureComponent { var snowClasses = this.props.enableChristmasSnow ? 'snow-button active' : 'snow-button '; const navToTags = HashTagNavlinks.map(element => { return ( -
  • +
  • -
    +
  • +
    - Un Gens - - (3) + + {this.props.newMessages && ( + + ({this.props.newMessages}) + + )}
    -
    -
    -

    oh hello there! 😋

    -
    -
    -
    -

    General Emoji

    -
    -
    -
    -

    we just achieved comedy

    -
    -
    -
    +