Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(component): new notification center implemented with sonner #6416

Merged
merged 1 commit into from
Apr 2, 2024

Commits on Apr 2, 2024

  1. refactor(component): new notification center implemented with sonner (#…

    …6416)
    
    The Notification has been reimplemented using sooner, no longer relies on jotai, and new story has been added.
    
    - Before
      ```ts
      import { pushNotificationAtom } from '@affine/component/notification-center';
      import { useSetAtom } from 'jotai';
    
      export const Component = () => {
        const pushNotification = useSetAtom(pushNotificationAtom);
        pushNotification({ ... });
      }
      ```
    
    - After
      ```ts
      import { notify } from "@affine/component";
    
      export const Component = () => {
        notify({ ... });
      }
      ```
    CatsJuice committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    a4cd51e View commit details
    Browse the repository at this point in the history