From 056a5e78472814c1d87b37c4f82452a0432d7c21 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 11 May 2022 19:56:28 -0500 Subject: [PATCH] Delete legacy site_logo and site_banner components --- .../public_layout/components/site_banner.js | 25 ------------------- .../public_layout/components/site_logo.js | 25 ------------------- 2 files changed, 50 deletions(-) delete mode 100644 app/soapbox/features/public_layout/components/site_banner.js delete mode 100644 app/soapbox/features/public_layout/components/site_logo.js diff --git a/app/soapbox/features/public_layout/components/site_banner.js b/app/soapbox/features/public_layout/components/site_banner.js deleted file mode 100644 index cdf685a9d..000000000 --- a/app/soapbox/features/public_layout/components/site_banner.js +++ /dev/null @@ -1,25 +0,0 @@ -import React from 'react'; -import ImmutablePureComponent from 'react-immutable-pure-component'; -import { connect } from 'react-redux'; - -import { getSoapboxConfig } from 'soapbox/actions/soapbox'; - -const mapStateToProps = (state, props) => ({ - instance: state.get('instance'), - soapbox: getSoapboxConfig(state), -}); - -class SiteBanner extends ImmutablePureComponent { - - render() { - const { instance, soapbox } = this.props; - const logos = { - imgLogo: ({instance.get('title')}), - textLogo: (

{instance.get('title')}

), - }; - return soapbox.getIn(['banner']) ? logos.imgLogo : logos.textLogo; - } - -} - -export default connect(mapStateToProps)(SiteBanner); diff --git a/app/soapbox/features/public_layout/components/site_logo.js b/app/soapbox/features/public_layout/components/site_logo.js deleted file mode 100644 index 0ee382e7b..000000000 --- a/app/soapbox/features/public_layout/components/site_logo.js +++ /dev/null @@ -1,25 +0,0 @@ -import React from 'react'; -import ImmutablePureComponent from 'react-immutable-pure-component'; -import { connect } from 'react-redux'; - -import { getSoapboxConfig } from 'soapbox/actions/soapbox'; - -const mapStateToProps = (state, props) => ({ - instance: state.get('instance'), - soapbox: getSoapboxConfig(state), -}); - -class SiteLogo extends ImmutablePureComponent { - - render() { - const { instance, soapbox } = this.props; - const logos = { - imgLogo: ({instance.get('title')}), - textLogo: (

{instance.get('title')}

), - }; - return soapbox.getIn(['logo']) ? logos.imgLogo : logos.textLogo; - } - -} - -export default connect(mapStateToProps)(SiteLogo);