diff --git a/frontend/src/App.js b/frontend/src/App.js index 18e974e..db2aacf 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -59,8 +59,14 @@ function App() { - - + + { const [description, setDescription] = useState('') const [uploading, setUploading] = useState(false) - const dispatch = useDispatch() const productCreate = useSelector((state) => state.productCreate) @@ -186,24 +185,27 @@ const CreateProductScreen = ({ history }) => { > - - Category - { - setCategory(e.target.value); - }} - > - - { - categories && categories.map((category)=>{ - return - }) - } - - + + Category + { + setCategory(e.target.value) + }} + > + + {categories && + categories.map((category) => { + return ( + + ) + })} + + Description diff --git a/frontend/src/screens/Error404Screen.js b/frontend/src/screens/Error404Screen.js index dfb15e5..036bc49 100644 --- a/frontend/src/screens/Error404Screen.js +++ b/frontend/src/screens/Error404Screen.js @@ -1,28 +1,28 @@ import React from 'react' -import {Row,Col,Button} from 'react-bootstrap' +import { Row, Col, Button } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' function Error404Screen() { return ( <> -
-
- +
+
+ -
404
+
404
-

Page not found

+

+ Page not found +

- +
) } -export default Error404Screen \ No newline at end of file +export default Error404Screen diff --git a/frontend/src/screens/ProductEditScreen.js b/frontend/src/screens/ProductEditScreen.js index bc31a97..7b522f6 100644 --- a/frontend/src/screens/ProductEditScreen.js +++ b/frontend/src/screens/ProductEditScreen.js @@ -205,23 +205,26 @@ const ProductEditScreen = ({ match, history }) => { > - - Category - { - setCategory(e.target.value); - }} - > - { - categories && categories.map((category)=>{ - return - }) - } - - + + Category + { + setCategory(e.target.value) + }} + > + {categories && + categories.map((category) => { + return ( + + ) + })} + + Description