Commit 1026abcd authored by zarina's avatar zarina 🌊

исправила ошибку с неверными атрибутами reactstrap

parent b9216aab
{ {
"name": "shop-frontend", "name": "exam_11_front",
"version": "0.1.0", "version": "0.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
......
...@@ -9,8 +9,6 @@ import Register from "./Register/Register"; ...@@ -9,8 +9,6 @@ import Register from "./Register/Register";
import Login from "./Login/Login"; import Login from "./Login/Login";
import AddProductForm from "./AddProductForm/AddProductForm"; import AddProductForm from "./AddProductForm/AddProductForm";
import {logoutUser} from "../store/actions/usersActions"; import {logoutUser} from "../store/actions/usersActions";
import FullProduct from "./FullProduct/FullProduct";
class App extends Component { class App extends Component {
...@@ -33,7 +31,6 @@ class App extends Component { ...@@ -33,7 +31,6 @@ class App extends Component {
<Route path="/register" exact component={Register} /> <Route path="/register" exact component={Register} />
<Route path="/login" exact component={Login} /> <Route path="/login" exact component={Login} />
<Route path="/products/new" exact component={AddProductForm} /> <Route path="/products/new" exact component={AddProductForm} />
<Route path="/products/:id" exact component={FullProduct} />
</Switch> </Switch>
</Container> </Container>
</main> </main>
......
import React, {Component} from "react"; import React, {Component} from "react";
import {connect} from "react-redux"; import {connect} from "react-redux";
import config from "../../config"; import config from "../../config";
import './FullProduct.css' import { Button} from "reactstrap";
import {Badge, Button} from "reactstrap";
import {NavLink} from "react-router-dom";
import {deleteProduct, getFullProduct} from "../../store/actions/productsActions"; import {deleteProduct, getFullProduct} from "../../store/actions/productsActions";
class FullProduct extends Component { class FullProduct extends Component {
...@@ -17,7 +15,6 @@ class FullProduct extends Component { ...@@ -17,7 +15,6 @@ class FullProduct extends Component {
return ( return (
<> <>
{(this.props.fullProduct && this.props.fullProduct.author) ? ( {(this.props.fullProduct && this.props.fullProduct.author) ? (
<> <>
<img width="500" className='postImage' <img width="500" className='postImage'
......
...@@ -22,7 +22,7 @@ class Products extends Component { ...@@ -22,7 +22,7 @@ class Products extends Component {
render() { render() {
return ( return (
<div className='Products'> <div className='Products'>
<Nav navbar c vertical className='Products_categories'> <Nav navbar vertical className='Products_categories'>
<NavItem> <NavItem>
<NavLink to='/'> All items</NavLink> <NavLink to='/'> All items</NavLink>
</NavItem> </NavItem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment