| 171 | }; |
| 172 | |
| 173 | function sendNotification() { |
| 174 | const componentProps = { |
| 175 | type: "feedback", |
| 176 | message: "User added!", |
| 177 | variant: "contained", |
| 178 | color: "success" |
| 179 | }; |
| 180 | const options = { |
| 181 | type: "info", |
| 182 | position: toast.POSITION.TOP_RIGHT, |
| 183 | progressClassName: classes.progress, |
| 184 | className: classes.notification, |
| 185 | timeOut: 1000 |
| 186 | }; |
| 187 | return toast( |
| 188 | <Notification |
| 189 | {...componentProps} |
| 190 | className={classes.notificationComponent} />, |
| 191 | |
| 192 | options |
| 193 | ); |
| 194 | } |
| 195 | return ( |
| 196 | <Grid container spacing={3}> |
| 197 | <Grid size={12}> |