@@ -246,7 +246,6 @@ export function CredentialSets() {
246246 setNewSetDescription ( '' )
247247 setNewSetProvider ( 'google-email' )
248248
249- // Open detail view for the newly created group
250249 if ( result ?. credentialSet ) {
251250 setViewingSet ( result . credentialSet )
252251 }
@@ -336,7 +335,6 @@ export function CredentialSets() {
336335 email,
337336 } )
338337
339- // Start 60s cooldown
340338 setResendCooldowns ( ( prev ) => ( { ...prev , [ invitationId ] : 60 } ) )
341339 const interval = setInterval ( ( ) => {
342340 setResendCooldowns ( ( prev ) => {
@@ -393,7 +391,6 @@ export function CredentialSets() {
393391 return < GmailIcon className = 'h-4 w-4' />
394392 }
395393
396- // All hooks must be called before any early returns
397394 const activeMemberships = useMemo (
398395 ( ) => memberships . filter ( ( m ) => m . status === 'active' ) ,
399396 [ memberships ]
@@ -447,7 +444,6 @@ export function CredentialSets() {
447444 < div className = 'flex h-full flex-col gap-[16px]' >
448445 < div className = 'min-h-0 flex-1 overflow-y-auto' >
449446 < div className = 'flex flex-col gap-[16px]' >
450- { /* Group Info */ }
451447 < div className = 'flex items-center gap-[16px]' >
452448 < div className = 'flex items-center gap-[8px]' >
453449 < span className = 'font-medium text-[13px] text-[var(--text-primary)]' >
@@ -471,7 +467,6 @@ export function CredentialSets() {
471467 </ div >
472468 </ div >
473469
474- { /* Invite Section - Email Tags Input */ }
475470 < div className = 'flex flex-col gap-[4px]' >
476471 < div className = 'flex items-center gap-[8px]' >
477472 < TagInput
@@ -495,7 +490,6 @@ export function CredentialSets() {
495490 { emailError && < p className = 'text-[12px] text-[var(--text-error)]' > { emailError } </ p > }
496491 </ div >
497492
498- { /* Members List - styled like team members */ }
499493 < div className = 'flex flex-col gap-[16px]' >
500494 < h4 className = 'font-medium text-[14px] text-[var(--text-primary)]' > Members</ h4 >
501495
@@ -519,7 +513,6 @@ export function CredentialSets() {
519513 </ p >
520514 ) : (
521515 < div className = 'flex flex-col gap-[16px]' >
522- { /* Active Members */ }
523516 { activeMembers . map ( ( member ) => {
524517 const name = member . userName || 'Unknown'
525518 const avatarInitial = name . charAt ( 0 ) . toUpperCase ( )
@@ -572,7 +565,6 @@ export function CredentialSets() {
572565 )
573566 } ) }
574567
575- { /* Pending Invitations */ }
576568 { pendingInvitations . map ( ( invitation ) => {
577569 const email = invitation . email || 'Unknown'
578570 const emailPrefix = email . split ( '@' ) [ 0 ]
@@ -641,7 +633,6 @@ export function CredentialSets() {
641633 </ div >
642634 </ div >
643635
644- { /* Footer Actions */ }
645636 < div className = 'mt-auto flex items-center justify-end' >
646637 < Button onClick = { handleBackToList } variant = 'tertiary' >
647638 Back
@@ -822,7 +813,6 @@ export function CredentialSets() {
822813 </ div >
823814 </ div >
824815
825- { /* Create Polling Group Modal */ }
826816 < Modal open = { showCreateModal } onOpenChange = { handleCloseCreateModal } >
827817 < ModalContent size = 'sm' >
828818 < ModalHeader > Create Polling Group</ ModalHeader >
@@ -895,7 +885,6 @@ export function CredentialSets() {
895885 </ ModalContent >
896886 </ Modal >
897887
898- { /* Leave Confirmation Modal */ }
899888 < Modal open = { ! ! leavingMembership } onOpenChange = { ( ) => setLeavingMembership ( null ) } >
900889 < ModalContent size = 'sm' >
901890 < ModalHeader > Leave Polling Group</ ModalHeader >
@@ -923,7 +912,6 @@ export function CredentialSets() {
923912 </ ModalContent >
924913 </ Modal >
925914
926- { /* Delete Confirmation Modal */ }
927915 < Modal open = { ! ! deletingSet } onOpenChange = { ( ) => setDeletingSet ( null ) } >
928916 < ModalContent size = 'sm' >
929917 < ModalHeader > Delete Polling Group</ ModalHeader >
0 commit comments