Commit 1026abcd authored by zarina's avatar zarina 🌊

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

parent b9216aab
{
"name": "shop-frontend",
"name": "exam_11_front",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,
......
......@@ -9,8 +9,6 @@ import Register from "./Register/Register";
import Login from "./Login/Login";
import AddProductForm from "./AddProductForm/AddProductForm";
import {logoutUser} from "../store/actions/usersActions";
import FullProduct from "./FullProduct/FullProduct";
class App extends Component {
......@@ -33,7 +31,6 @@ class App extends Component {
<Route path="/register" exact component={Register} />
<Route path="/login" exact component={Login} />
<Route path="/products/new" exact component={AddProductForm} />
<Route path="/products/:id" exact component={FullProduct} />
</Switch>
</Container>
</main>
......
import React, {Component} from "react";
import {connect} from "react-redux";
import config from "../../config";
import './FullProduct.css'
import {Badge, Button} from "reactstrap";
import {NavLink} from "react-router-dom";
import { Button} from "reactstrap";
import {deleteProduct, getFullProduct} from "../../store/actions/productsActions";
class FullProduct extends Component {
......@@ -17,7 +15,6 @@ class FullProduct extends Component {
return (
<>
{(this.props.fullProduct && this.props.fullProduct.author) ? (
<>
<img width="500" className='postImage'
......
......@@ -22,7 +22,7 @@ class Products extends Component {
render() {
return (
<div className='Products'>
<Nav navbar c vertical className='Products_categories'>
<Nav navbar vertical className='Products_categories'>
<NavItem>
<NavLink to='/'> All items</NavLink>
</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