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

@@ -18,7 +18,7 @@ const makeMapStateToProps = () => {
const isReposts = !!props.notification.get('repost')
const isGrouped = isFollows || isLikes || isReposts
const lastReadId = state.getIn(['notifications', 'lastReadId'])
const isCompact = state.getIn(['settings', 'isCompact'])
const isDeckConnected = state.getIn(['deck', 'connected'], false)
if (isFollows) {
let lastUpdated
@@ -41,7 +41,7 @@ const makeMapStateToProps = () => {
createdAt: lastUpdated,
isUnread: isUnread,
statusId: undefined,
isCompact,
isDeckConnected,
}
} else if (isLikes || isReposts) {
const theType = isLikes ? 'like' : 'repost'
@@ -64,7 +64,7 @@ const makeMapStateToProps = () => {
createdAt: lastUpdated,
isUnread: isUnread,
statusId: list.get('status'),
isCompact,
isDeckConnected,
}
} else if (!isGrouped) {
const notification = getNotification(state, props.notification, props.notification.get('account'))
@@ -77,7 +77,7 @@ const makeMapStateToProps = () => {
createdAt: notification.get('created_at'),
isUnread: lastReadId < notification.get('id'),
statusId: statusId || undefined,
isCompact,
isDeckConnected,
}
}
}

View File

@@ -183,12 +183,12 @@ const makeMapStateToProps = () => {
isComment,
commentSortingType,
isComposeModalOpen: state.getIn(['modal', 'modalType']) === 'COMPOSE',
isCompact: state.getIn(['settings', 'isCompact']),
isDeckConnected: state.getIn(['deck', 'connected'], false),
}
}
return mapStateToProps
};
}
const mapDispatchToProps = (dispatch) => ({
onReply (status, router, showModal) {