feat(campaign-ui): review and link managed attachments
This commit is contained in:
@@ -36,6 +36,7 @@ export type CampaignMessagePreviewOverlayProps = {
|
||||
raw?: string | null;
|
||||
rawLabel?: string;
|
||||
navigation?: CampaignMessagePreviewNavigation;
|
||||
actions?: ReactNode;
|
||||
closeLabel?: string;
|
||||
onClose: () => void;
|
||||
};
|
||||
@@ -53,6 +54,7 @@ export default function CampaignMessagePreviewOverlay({
|
||||
raw,
|
||||
rawLabel = "i18n:govoplan-campaign.raw_mime.82c612d4",
|
||||
navigation,
|
||||
actions,
|
||||
closeLabel = "i18n:govoplan-campaign.close.bbfa773e",
|
||||
onClose
|
||||
}: CampaignMessagePreviewOverlayProps) {
|
||||
@@ -131,7 +133,10 @@ export default function CampaignMessagePreviewOverlay({
|
||||
</details>
|
||||
}
|
||||
</div>
|
||||
<footer className="modal-footer"><Button variant="primary" onClick={onClose}>{closeLabel}</Button></footer>
|
||||
<footer className="modal-footer">
|
||||
{actions && <div className="button-row compact-actions">{actions}</div>}
|
||||
<Button variant="primary" onClick={onClose}>{closeLabel}</Button>
|
||||
</footer>
|
||||
</div>
|
||||
</div>);
|
||||
|
||||
@@ -146,4 +151,4 @@ function isEditableTarget(target: EventTarget | null): boolean {
|
||||
export type MessagePreviewAttachment = CampaignMessagePreviewAttachment;
|
||||
export type MessagePreviewMetaItem = CampaignMessagePreviewMetaItem;
|
||||
export type MessagePreviewNavigation = CampaignMessagePreviewNavigation;
|
||||
export type MessagePreviewOverlayProps = CampaignMessagePreviewOverlayProps;
|
||||
export type MessagePreviewOverlayProps = CampaignMessagePreviewOverlayProps;
|
||||
|
||||
Reference in New Issue
Block a user