mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
a4cd51e503
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({ ... });
}
```
26 lines
802 B
TypeScript
26 lines
802 B
TypeScript
// TODO: Check `input` , `loading`, not migrated from `design`
|
|
export * from './lit-react';
|
|
export * from './styles';
|
|
export * from './ui/avatar';
|
|
export * from './ui/button';
|
|
export * from './ui/checkbox';
|
|
export * from './ui/date-picker';
|
|
export * from './ui/divider';
|
|
export * from './ui/editable';
|
|
export * from './ui/empty';
|
|
export * from './ui/input';
|
|
export * from './ui/layout';
|
|
export * from './ui/loading';
|
|
export * from './ui/lottie/collections-icon';
|
|
export * from './ui/lottie/delete-icon';
|
|
export * from './ui/menu';
|
|
export * from './ui/modal';
|
|
export * from './ui/notification';
|
|
export * from './ui/popover';
|
|
export * from './ui/scrollbar';
|
|
export * from './ui/skeleton';
|
|
export * from './ui/switch';
|
|
export * from './ui/table';
|
|
export * from './ui/toast';
|
|
export * from './ui/tooltip';
|