courrier formatting
This commit is contained in:
parent
36d4fb8c40
commit
fcf1631e0f
@ -135,6 +135,7 @@ export default function EmailList({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Only show bulk actions when emails are explicitly selected via checkboxes */}
|
||||
{selectedEmailIds.length > 0 && (
|
||||
<BulkActionsToolbar
|
||||
selectedCount={selectedEmailIds.length}
|
||||
|
||||
@ -243,10 +243,7 @@ export function emailReducer(state: EmailState, action: EmailAction): EmailState
|
||||
return {
|
||||
...state,
|
||||
selectedEmail: action.payload.email,
|
||||
// If an email is selected, add it to the selectedEmailIds if not already there
|
||||
selectedEmailIds: action.payload.email && !state.selectedEmailIds.includes(action.payload.emailId)
|
||||
? [...state.selectedEmailIds, action.payload.emailId]
|
||||
: state.selectedEmailIds
|
||||
// Don't modify selectedEmailIds when just selecting an email for preview
|
||||
};
|
||||
|
||||
case 'TOGGLE_EMAIL_SELECTION': {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user