Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
exam_11_front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zarina
exam_11_front
Commits
1026abcd
Commit
1026abcd
authored
Jul 30, 2020
by
zarina
🌊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
исправила ошибку с неверными атрибутами reactstrap
parent
b9216aab
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
9 deletions
+3
-9
package-lock.json
package-lock.json
+1
-1
App.js
src/containers/App.js
+0
-3
FullProduct.css
src/containers/FullProduct/FullProduct.css
+0
-0
FullProduct.js
src/containers/FullProduct/FullProduct.js
+1
-4
Products.js
src/containers/Products/Products.js
+1
-1
products.js
src/store/products.js
+0
-0
No files found.
package-lock.json
View file @
1026abcd
{
{
"name"
:
"
shop-frontend
"
,
"name"
:
"
exam_11_front
"
,
"version"
:
"0.1.0"
,
"version"
:
"0.1.0"
,
"lockfileVersion"
:
1
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"requires"
:
true
,
...
...
src/containers/App.js
View file @
1026abcd
...
@@ -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
>
...
...
src/containers/FullProduct/FullProduct.css
deleted
100644 → 0
View file @
b9216aab
src/containers/FullProduct/FullProduct.js
View file @
1026abcd
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'
...
...
src/containers/Products/Products.js
View file @
1026abcd
...
@@ -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
>
...
...
src/store/products.js
deleted
100644 → 0
View file @
b9216aab
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment