File tree Expand file tree Collapse file tree 3 files changed +3
-27
lines changed
chapter-12/src/app/views/dashboard/account/AccountView
chapter-13/src/app/views/dashboard/account/AccountView
chapter-15/src/app/views/dashboard/account/AccountView Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import type { FormEvent } from 'react' ;
3
2
import clsx from 'clsx' ;
4
3
import {
5
4
Box ,
@@ -22,15 +21,8 @@ type Props = {
22
21
const Notifications = ( { className, ...rest } : Props ) => {
23
22
const classes = useStyles ( ) ;
24
23
25
- const handleSubmit = async (
26
- event : FormEvent < HTMLFormElement > ,
27
- ) : Promise < void > => {
28
- event . preventDefault ( ) ;
29
- // NOTE: Make API request
30
- } ;
31
-
32
24
return (
33
- < form onSubmit = { handleSubmit } >
25
+ < form >
34
26
< Card className = { clsx ( classes . root , className ) } { ...rest } >
35
27
< CardHeader title = "Notifications" />
36
28
< Divider />
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import type { FormEvent } from 'react' ;
3
2
import clsx from 'clsx' ;
4
3
import {
5
4
Box ,
@@ -22,15 +21,8 @@ type Props = {
22
21
const Notifications = ( { className, ...rest } : Props ) => {
23
22
const classes = useStyles ( ) ;
24
23
25
- const handleSubmit = async (
26
- event : FormEvent < HTMLFormElement > ,
27
- ) : Promise < void > => {
28
- event . preventDefault ( ) ;
29
- // NOTE: Make API request
30
- } ;
31
-
32
24
return (
33
- < form onSubmit = { handleSubmit } >
25
+ < form >
34
26
< Card className = { clsx ( classes . root , className ) } { ...rest } >
35
27
< CardHeader title = "Notifications" />
36
28
< Divider />
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import type { FormEvent } from 'react' ;
3
2
import clsx from 'clsx' ;
4
3
import {
5
4
Box ,
@@ -22,15 +21,8 @@ type Props = {
22
21
const Notifications = ( { className, ...rest } : Props ) => {
23
22
const classes = useStyles ( ) ;
24
23
25
- const handleSubmit = async (
26
- event : FormEvent < HTMLFormElement > ,
27
- ) : Promise < void > => {
28
- event . preventDefault ( ) ;
29
- // NOTE: Make API request
30
- } ;
31
-
32
24
return (
33
- < form onSubmit = { handleSubmit } >
25
+ < form >
34
26
< Card className = { clsx ( classes . root , className ) } { ...rest } >
35
27
< CardHeader title = "Notifications" />
36
28
< Divider />
You can’t perform that action at this time.
0 commit comments