Skip to content

Commit

Permalink
Renamed/reformatted render function
Browse files Browse the repository at this point in the history
  • Loading branch information
TJScalzo committed Jul 31, 2017
1 parent 2992b11 commit 56bedd1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
37 changes: 16 additions & 21 deletions components/editArticle.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
export default class extends React.Component {
render () {
return (
<div>
<form id="article">
Title: <input type="text" name="title" placeholder="Untitled"></input><br />
Author: <input type="text" name="author" placeholder="You"></input><br />
Content: <textarea name="content" rows="10" placeholder="Markdown Available"></textarea><br />
Abstract: <textarea name="abstract" rows="2" placeholder="Markdown Available"></textarea><br />
Thumbnail: <input type="text" name="thumbnail" placeholder="(Link to a photo)"></input><br />
Type: <select id="selection" name="type"><option value="article">Article</option><option value="project">Project</option><option value="user">User</option></select><br />
Tags: <div id="article_tags" className="taggle_div"></div><br />
Needed/Related Tags: <div id="article_needed_tags" className="taggle_div"></div><br />
const editArticle = () => ()
<div>
<form id="article">
Title: <input type="text" name="title" placeholder="Untitled"></input><br />
Author: <input type="text" name="author" placeholder="You"></input><br />
Content: <textarea name="content" rows="10" placeholder="Markdown Available"></textarea><br />
Abstract: <textarea name="abstract" rows="2" placeholder="Markdown Available"></textarea><br />
Thumbnail: <input type="text" name="thumbnail" placeholder="(Link to a photo)"></input><br />
Type: <select id="selection" name="type"><option value="article">Article</option><option value="project">Project</option><option value="user">User</option></select><br />
Tags: <div id="article_tags" className="taggle_div"></div><br />
Needed/Related Tags: <div id="article_needed_tags" className="taggle_div"></div><br />

<input type="submit" value="Submit"></input>
</form>
</div>
)
}
componentDidMount() {
<input type="submit" value="Submit"></input>
</form>
</div>
)

}
}
export default editArticle
4 changes: 2 additions & 2 deletions components/editUser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const createUser = () => (
const editUser = () => (
<div>
<form id="user" hidden>
First name: <input type="text" name="first_name" placeholder="Jack"></input><br />
Expand All @@ -11,4 +11,4 @@ const createUser = () => (
</div>
)

export default createUser
export default editUser

0 comments on commit 56bedd1

Please sign in to comment.