Skip to content

Commit

Permalink
fix(articles): adjusted create article page
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Mar 20, 2022
1 parent e3626f3 commit 03a66ba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Pages/Articles/CreateArticle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { useHistory, useParams } from 'react-router-dom';
import axios from 'axios';
import './CreateArticle.css';
import marked from 'marked';
import { v4 as uuidv4 } from 'uuid';
import NavBar from '../../Components/NavBar/NavBar';
import Footer from '../../Components/Footer/Footer';

const initialState = {
article_id: '',
Expand Down Expand Up @@ -109,6 +112,7 @@ function CreatArticle() {

return (
<>
<NavBar/>
<div className="create_article" >
<div className="container fluid col-md-12">
<div id="signupbox" >
Expand Down Expand Up @@ -150,9 +154,9 @@ function CreatArticle() {
<div className="controls col-md-8 ">
<input className="input-md emailinput form-control mb"
name="article_id"
required value={article.article_id}
required value={uuidv4()}
onChange={handleChangeInput}
placeholder="Enter Project Id" type="text" />
disabled />
</div>
</div>
</div>
Expand Down Expand Up @@ -247,6 +251,7 @@ function CreatArticle() {
</div>
</div>
<hr style={{ background: 'rgb(235,183,65)', width: '100%' }} />
<Footer/>
</>
)
}
Expand Down

0 comments on commit 03a66ba

Please sign in to comment.