Updates to Gab Deck

• Updates:
- to Gab Deck
This commit is contained in:
mgabdev
2020-12-08 00:07:04 -05:00
parent 05c5dcb581
commit 6950f67520
16 changed files with 210 additions and 115 deletions

View File

@@ -40,7 +40,7 @@ class TimelineInjectionLayout extends React.PureComponent {
buttonHref,
buttonTitle,
isXS,
isCompact,
isDeckConnected,
} = this.props
const { dismissed } = this.state
@@ -53,7 +53,7 @@ class TimelineInjectionLayout extends React.PureComponent {
borderTop1PX: isXS,
borderBottom1PX: isXS,
border1PX: !isXS,
radiusSmall: !isXS && !isCompact,
radiusSmall: !isXS && !isDeckConnected,
borderColorSecondary: 1,
bgPrimary: 1,
overflowHidden: 1,
@@ -106,9 +106,8 @@ class TimelineInjectionLayout extends React.PureComponent {
}
const mapStateToProps = (state) => ({
isCompact: state.getIn(['settings', 'isCompact']),
isDeckConnected: state.getIn(['deck', 'connected'], false),
})
TimelineInjectionLayout.propTypes = {
@@ -119,6 +118,7 @@ TimelineInjectionLayout.propTypes = {
id: PropTypes.string.isRequired,
subtitle: PropTypes.string,
isXS: PropTypes.bool,
isDeckConnected: PropTypes.bool,
}
export default connect(mapStateToProps)(TimelineInjectionLayout)