mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
add comment to notification.ts
This commit is contained in:
@@ -3,5 +3,7 @@ import { useContext } from 'react'
|
||||
|
||||
export const useNotify = () => {
|
||||
const { notify, setMessage } = useContext(NotificationContext)
|
||||
// setMessage can be used to change a notification's message without creating a new one
|
||||
// use this to create a progress bar etc.
|
||||
return { notify, setMessage }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user