Delete legacy site_logo and site_banner components

This commit is contained in:
Alex Gleason 2022-05-11 19:56:28 -05:00
parent 01ec7bc279
commit 056a5e7847
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 0 additions and 50 deletions

View file

@ -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: (<img alt={instance.get('title')} src={soapbox.get('banner')} />),
textLogo: (<h1>{instance.get('title')}</h1>),
};
return soapbox.getIn(['banner']) ? logos.imgLogo : logos.textLogo;
}
}
export default connect(mapStateToProps)(SiteBanner);

View file

@ -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: (<img alt={instance.get('title')} src={soapbox.get('logo')} />),
textLogo: (<h1>{instance.get('title')}</h1>),
};
return soapbox.getIn(['logo']) ? logos.imgLogo : logos.textLogo;
}
}
export default connect(mapStateToProps)(SiteLogo);