This commit is contained in:
E
2021-03-07 20:45:57 -07:00
parent 181a2bbb74
commit 1e8d655d1d
7 changed files with 83 additions and 58 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { Content } from 'antd/lib/layout/layout'
import React, { FormEvent } from 'react'
import { useState } from 'react'
import { useHistory } from 'react-router-dom'
@@ -37,7 +38,7 @@ export const Dashboard = () => {
}
return (
<div>
<Content>
<h1>Dashboard</h1>
<form onSubmit={handleSubmit}>
<label htmlFor="name">
@@ -72,6 +73,6 @@ export const Dashboard = () => {
</button>
{error && <p className="error">{error}</p>}
</form>
</div>
</Content>
)
}