Skip to content

Commit 872bcd6

Browse files
committed
[#13] - Just reorder props of input element
1 parent 098524b commit 872bcd6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: src/components/StoryModal/StoryModal.tsx

+8-6
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,21 @@ class StoryModal extends React.Component<{
7272
<form onSubmit={this.handleSubmit}>
7373
<div className="form-group">
7474
<label>Name</label>
75-
<input type="text"
76-
value={this.state.author}
77-
onChange={(e) => this.handleInputChange(e)}
78-
id="author"
79-
className="form-control" />
75+
<input
76+
id="author"
77+
type="text"
78+
value={this.state.author}
79+
onChange={(e) => this.handleInputChange(e)}
80+
className="form-control"
81+
/>
8082
</div>
8183
<div className="form-group">
8284
<label>Content</label>
8385
<textarea
86+
id="content"
8487
value={this.state.content}
8588
onChange={(e) => this.handleInputChange(e)}
8689
cols={30}
87-
id="content"
8890
className="form-control"
8991
/>
9092
</div>

0 commit comments

Comments
 (0)