Hide "become a sustainer" button if you're already a sustainer
This commit is contained in:
parent
7edf3763a8
commit
67b17ec317
22 changed files with 318 additions and 26 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue