Hide "become a sustainer" button if you're already a sustainer

This commit is contained in:
Evan Hahn
2021-11-30 10:29:57 -06:00
committed by GitHub
parent 7edf3763a8
commit 67b17ec317
22 changed files with 318 additions and 26 deletions
+2
View File
@@ -7,6 +7,7 @@ import type { PropsDataType } from '../../components/conversation/ContactModal';
import { ContactModal } from '../../components/conversation/ContactModal';
import type { StateType } from '../reducer';
import { getAreWeASubscriber } from '../selectors/items';
import { getIntl, getTheme } from '../selectors/user';
import { getBadgesSelector } from '../selectors/badges';
import { getConversationSelector } from '../selectors/conversations';
@@ -35,6 +36,7 @@ const mapStateToProps = (state: StateType): PropsDataType => {
}
return {
areWeASubscriber: getAreWeASubscriber(state),
areWeAdmin,
badges: getBadgesSelector(state)(contact.badges),
contact,