+
+
{
+ setSelectedTab(Tab.Requests);
+ }}
+ onKeyUp={(e: React.KeyboardEvent) => {
+ if (e.target === e.currentTarget && e.keyCode === 13) {
+ setSelectedTab(Tab.Requests);
+ }
+ }}
+ role="tab"
+ tabIndex={0}
+ >
+ {i18n('PendingInvites--tab-requests', {
+ count: String(allRequestingMemberships.length),
+ })}
+
+
+
{
+ setSelectedTab(Tab.Pending);
+ }}
+ onKeyUp={(e: React.KeyboardEvent) => {
+ if (e.target === e.currentTarget && e.keyCode === 13) {
+ setSelectedTab(Tab.Pending);
+ }
+ }}
+ role="tab"
+ tabIndex={0}
+ >
+ {i18n('PendingInvites--tab-invites', {
+ count: String(allPendingMemberships.length),
+ })}
+
+
+
+ {selectedTab === Tab.Requests ? (
+
+ ) : null}
+ {selectedTab === Tab.Pending ? (
+
+ ) : null}
+
+ {stagedMemberships && stagedMemberships.length && (
+
setStagedMemberships(null)}
+ ourConversationId={ourConversationId}
+ revokePendingMemberships={revokePendingMemberships}
+ stagedMemberships={stagedMemberships}
+ />
+ )}
+
+ );
+};
+
+function MembershipActionConfirmation({
+ approvePendingMembership,
+ i18n,
+ members,
+ onClose,
+ ourConversationId,
+ revokePendingMemberships,
+ stagedMemberships,
+}: {
+ approvePendingMembership: (conversationId: string) => void;
+ i18n: LocalizerType;
+ members: Array