mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
chore: move getPageMeta from app-state-provider to page-helper
This commit is contained in:
@@ -52,7 +52,10 @@ export type ToastOptions = {
|
||||
* toast('Hello World');
|
||||
* ```
|
||||
*/
|
||||
export const toast = (message: string, { duration = 2500 }: ToastOptions) => {
|
||||
export const toast = (
|
||||
message: string,
|
||||
{ duration }: ToastOptions = { duration: 2500 }
|
||||
) => {
|
||||
if (!ToastContainer) {
|
||||
ToastContainer = createToastContainer();
|
||||
}
|
||||
@@ -105,5 +108,4 @@ export const toast = (message: string, { duration = 2500 }: ToastOptions) => {
|
||||
return element;
|
||||
};
|
||||
|
||||
|
||||
export default toast;
|
||||
|
||||
Reference in New Issue
Block a user