mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
refactor(core): move actions to footer of notification card (#11894)
This PR move all actions button to the footer of `NotificationCard`. There are some example as following: ### No Changes    ### Changes ### Before  #### After 
This commit is contained in:
@@ -29,14 +29,14 @@ export interface NotificationService {
|
||||
notify(options: {
|
||||
title: string | TemplateResult;
|
||||
message?: string | TemplateResult;
|
||||
footer?: string | TemplateResult;
|
||||
accent?: 'info' | 'success' | 'warning' | 'error';
|
||||
duration?: number; // unit ms, give 0 to disable auto dismiss
|
||||
abort?: AbortSignal;
|
||||
action?: {
|
||||
actions?: {
|
||||
key: string;
|
||||
label: string | TemplateResult;
|
||||
onClick: () => void;
|
||||
};
|
||||
}[];
|
||||
onClose: () => void;
|
||||
}): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user