diff --git a/src/App.tsx b/src/App.tsx
index 12ed974..28379bf 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -2,16 +2,12 @@ import './App.css';
import Header from './sections/Header';
import Content from './sections/Content';
import Footer from './sections/Footer';
-import Button from './buttons/Button';
function App() {
return (
<>
-
>
);
diff --git a/src/forms/NameForm.tsx b/src/forms/NameForm.tsx
index 33e8953..324e325 100644
--- a/src/forms/NameForm.tsx
+++ b/src/forms/NameForm.tsx
@@ -1,9 +1,19 @@
+import React from 'react';
import Button from '../buttons/Button';
import NameInput from '../inputs/NameInput';
-function NameForm() {
+interface NameFormProps {
+ onSubmit: () => void;
+}
+
+function NameForm({ onSubmit }: NameFormProps) {
+ const handleSubmit = (event: React.FormEvent) => {
+ event.preventDefault();
+ onSubmit();
+ };
+
return (
-