Skip to content

Commit e936207

Browse files
updated
1 parent 1447429 commit e936207

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

chapter-12/src/app/views/dashboard/account/AccountView/Notifications.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import type { FormEvent } from 'react';
32
import clsx from 'clsx';
43
import {
54
Box,
@@ -22,15 +21,8 @@ type Props = {
2221
const Notifications = ({ className, ...rest }: Props) => {
2322
const classes = useStyles();
2423

25-
const handleSubmit = async (
26-
event: FormEvent<HTMLFormElement>,
27-
): Promise<void> => {
28-
event.preventDefault();
29-
// NOTE: Make API request
30-
};
31-
3224
return (
33-
<form onSubmit={handleSubmit}>
25+
<form>
3426
<Card className={clsx(classes.root, className)} {...rest}>
3527
<CardHeader title="Notifications" />
3628
<Divider />

chapter-13/src/app/views/dashboard/account/AccountView/Notifications.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import type { FormEvent } from 'react';
32
import clsx from 'clsx';
43
import {
54
Box,
@@ -22,15 +21,8 @@ type Props = {
2221
const Notifications = ({ className, ...rest }: Props) => {
2322
const classes = useStyles();
2423

25-
const handleSubmit = async (
26-
event: FormEvent<HTMLFormElement>,
27-
): Promise<void> => {
28-
event.preventDefault();
29-
// NOTE: Make API request
30-
};
31-
3224
return (
33-
<form onSubmit={handleSubmit}>
25+
<form>
3426
<Card className={clsx(classes.root, className)} {...rest}>
3527
<CardHeader title="Notifications" />
3628
<Divider />

chapter-15/src/app/views/dashboard/account/AccountView/Notifications.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import type { FormEvent } from 'react';
32
import clsx from 'clsx';
43
import {
54
Box,
@@ -22,15 +21,8 @@ type Props = {
2221
const Notifications = ({ className, ...rest }: Props) => {
2322
const classes = useStyles();
2423

25-
const handleSubmit = async (
26-
event: FormEvent<HTMLFormElement>,
27-
): Promise<void> => {
28-
event.preventDefault();
29-
// NOTE: Make API request
30-
};
31-
3224
return (
33-
<form onSubmit={handleSubmit}>
25+
<form>
3426
<Card className={clsx(classes.root, className)} {...rest}>
3527
<CardHeader title="Notifications" />
3628
<Divider />

0 commit comments

Comments
 (0)