Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
inventory-frontend
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
coding-brunch-hh
inventory-frontend
Commits
3f559055
Commit
3f559055
authored
Aug 06, 2018
by
Martin Fahl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactors
parent
6763d342
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
src/components/Item/Item.js
src/components/Item/Item.js
+2
-1
src/components/Navbar/Navbar.js
src/components/Navbar/Navbar.js
+2
-2
src/index.js
src/index.js
+0
-5
No files found.
src/components/Item/Item.js
View file @
3f559055
import
React
,
{
Component
}
from
"
react
"
;
import
React
from
"
react
"
;
import
PropTypes
from
"
prop-types
"
;
import
{
ListGroupItem
,
Badge
,
Fa
}
from
"
mdbreact
"
;
import
{
Row
,
Col
}
from
"
mdbreact
"
;
...
...
@@ -25,6 +25,7 @@ const Item = ({ id, name, quantity, increment, decrement, deleteItem }) => (
)
Item
.
propTypes
=
{
id
:
PropTypes
.
string
.
isRequired
,
name
:
PropTypes
.
string
.
isRequired
,
quantity
:
PropTypes
.
number
,
increment
:
PropTypes
.
func
,
...
...
src/components/Navbar/Navbar.js
View file @
3f559055
...
...
@@ -5,8 +5,8 @@ import { CodecentricLogo } from "../CodecentricLogo/CodecentricLogo";
export
const
Navbar
=
({
appName
})
=>
(
<
nav
className
=
"
navbar navbar-expand-lg navbar-dark primary-color
"
>
<
a
className
=
"
navbar-brand
"
href
=
"
#
"
><
CodecentricLogo
className
=
"
d-inline-block align-top
"
/><
/a
>
<
a
className
=
"
navbar-brand
"
href
=
"
#
"
>
{
appName
}
<
/a
>
<
a
className
=
"
navbar-brand
"
href
=
"
/
"
><
CodecentricLogo
className
=
"
d-inline-block align-top
"
/><
/a
>
<
a
className
=
"
navbar-brand
"
href
=
"
/
"
>
{
appName
}
<
/a
>
<
/nav
>
);
...
...
src/index.js
View file @
3f559055
...
...
@@ -9,7 +9,6 @@ import 'font-awesome/css/font-awesome.min.css';
import
'
bootstrap/dist/css/bootstrap.min.css
'
;
import
'
mdbreact/dist/css/mdb.css
'
;
import
App
from
'
./components/App/App
'
;
import
{
add
}
from
'
./actions
'
;
const
store
=
createStore
(
rootReducer
,
...
...
@@ -21,10 +20,6 @@ store.subscribe(() => {
console
.
log
(
store
.
getState
());
});
//store.dispatch(add(1, 'Milk'));
//store.dispatch(add(2, 'Eggs'));
//store.dispatch(add(3, 'Bacon'));
render
(
<
Provider
store
=
{
store
}
>
<
App
/>
...
...
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