diff --git a/src/components/error-boundary.tsx b/src/components/error-boundary.tsx index a80ef43dc5..494a813b64 100644 --- a/src/components/error-boundary.tsx +++ b/src/components/error-boundary.tsx @@ -14,18 +14,6 @@ import SiteLogo from './site-logo'; import type { RootState } from 'soapbox/store'; -const goHome = () => location.href = '/'; - -const mapStateToProps = (state: RootState) => { - const { links, logo } = getSoapboxConfig(state); - - return { - siteTitle: state.instance.title, - logo, - links, - }; -}; - interface Props extends ReturnType { children: React.ReactNode; } @@ -216,4 +204,18 @@ class ErrorBoundary extends React.PureComponent { } +function goHome() { + location.href = '/'; +} + +function mapStateToProps(state: RootState) { + const { links, logo } = getSoapboxConfig(state); + + return { + siteTitle: state.instance.title, + logo, + links, + }; +} + export default connect(mapStateToProps)(ErrorBoundary);