-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDescription.js
26 lines (22 loc) · 1.03 KB
/
Description.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This component is the first step of the app. It allows the user to enter the title and the description of the book
import React from "react";
import "./Description.css";
const DescriptionView = ({ bookInfo, handleChange, nextStep }) => {
return (
<div className="container-form">
<p className="form-title">BookWriter</p>
<div className="form-element">
<label className="label-input" >Title</label>
<input className="input-single" type="text" name="title" value={bookInfo.title} onChange={handleChange} />
</div>
<div className="form-element">
<label className="label-input">Description</label>
<textarea className="input-multiple" type="text" name="description" value={bookInfo.description} onChange={handleChange} />
</div>
<div className="form-element-bottom">
<button className="button-form" type="button" onClick={nextStep}>Outline</button>
</div>
</div>
);
};
export default DescriptionView;