|
1 | 1 | import * as React from 'react' |
2 | 2 | import * as Types from '../../../../../constants/types/teams' |
3 | 3 | import * as Kb from '../../../../../common-adapters' |
4 | | -import * as Container from '../../../../../util/container' |
5 | 4 | import {FloatingRolePicker} from '../../../../role-picker' |
6 | 5 | import * as Styles from '../../../../../styles' |
7 | 6 | import flags from '../../../../../util/feature-flags' |
@@ -74,13 +73,11 @@ const TeamRequestRowOld = (props: Props) => { |
74 | 73 | } |
75 | 74 |
|
76 | 75 | const TeamRequestRowNew = (props: Props) => { |
77 | | - const {ctime, fullName, username, onAccept, onOpenProfile, reset, teamID} = props |
| 76 | + const {ctime, fullName, username, onAccept, onOpenProfile, reset} = props |
78 | 77 |
|
79 | 78 | const approveWord = reset ? 'Readmit' : 'Approve' |
80 | 79 | const denyWord = reset ? 'Remove' : 'Deny' |
81 | 80 |
|
82 | | - const isNew = Container.useSelector(s => s.teams.newTeamRequests.get(teamID)?.has(username) ?? false) |
83 | | - |
84 | 81 | const {showingPopup, setShowingPopup, toggleShowingPopup, popup, popupAnchor} = Kb.usePopup(attachTo => ( |
85 | 82 | <Kb.FloatingMenu |
86 | 83 | header={ |
@@ -120,13 +117,11 @@ const TeamRequestRowNew = (props: Props) => { |
120 | 117 | <Kb.Box2 direction="vertical" fullWidth={true}> |
121 | 118 | <Kb.ConnectedUsernames type="BodyBold" colorFollowing={true} usernames={username} /> |
122 | 119 | <Kb.Box2 direction="horizontal" alignSelf="flex-start"> |
123 | | - {(isNew || reset) && ( |
124 | | - <Kb.Meta |
125 | | - title={reset ? 'locked out' : 'please decide'} |
126 | | - style={styleCharm} |
127 | | - backgroundColor={reset ? Styles.globalColors.red : Styles.globalColors.orange} |
128 | | - /> |
129 | | - )} |
| 120 | + <Kb.Meta |
| 121 | + title={reset ? 'locked out' : 'please decide'} |
| 122 | + style={styleCharm} |
| 123 | + backgroundColor={reset ? Styles.globalColors.red : Styles.globalColors.orange} |
| 124 | + /> |
130 | 125 | {Styles.isMobile ? ( |
131 | 126 | isLargeScreen && ( |
132 | 127 | <Kb.Text type="BodySmall" ellipsizeMode="tail" lineClamp={1} style={styles.newFullName}> |
|
0 commit comments