Updates to Gab Deck
• Updates: - to Gab Deck
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user