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