diff --git a/src/client/components/notification/NotificationPicker.tsx b/src/client/components/notification/NotificationPicker.tsx index d5bec86..0011ccc 100644 --- a/src/client/components/notification/NotificationPicker.tsx +++ b/src/client/components/notification/NotificationPicker.tsx @@ -1,20 +1,40 @@ -import { Select, SelectProps } from 'antd'; +import { Button, Empty, Select, SelectProps } from 'antd'; import React from 'react'; import { trpc } from '../../api/trpc'; import { useCurrentWorkspaceId } from '../../store/user'; import { ColorTag } from '../ColorTag'; +import { useNavigate } from 'react-router'; +import { PlusOutlined } from '@ant-design/icons'; interface NotificationPickerProps extends SelectProps {} export const NotificationPicker: React.FC = React.memo( (props) => { const workspaceId = useCurrentWorkspaceId(); + const navigate = useNavigate(); const { data: allNotification = [] } = trpc.notification.all.useQuery({ workspaceId, }); return ( - +
Not found any notification
+ + + } + /> + } + {...props} + > + {allNotification.map((m: any) => ( {m.name}