|
@@ -243,7 +243,7 @@ const CGoodCard = connect(null, {onAdd: actionCartAdd})(GoodCard)
|
|
|
|
|
|
const LogBtn = () =>
|
|
const LogBtn = () =>
|
|
<div className='KoshikCnt item'>
|
|
<div className='KoshikCnt item'>
|
|
- <Link to="/cart" style={{color:'white', textDecoration:'none'}}>Войти</Link>
|
|
|
|
|
|
+ <Link to="/login" style={{color:'white', textDecoration:'none'}}>Войти</Link>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
const Koshik = ({cart}) => {
|
|
const Koshik = ({cart}) => {
|
|
@@ -300,7 +300,7 @@ const Cart = ({cart}) => {
|
|
|
|
|
|
return(
|
|
return(
|
|
<div>
|
|
<div>
|
|
- <h1>Корзина</h1>
|
|
|
|
|
|
+ <h1 style={{marginLeft:'30px'}}>Корзина</h1>
|
|
<ul>{cartArr.map(item => <CCartItem cart={item.good} count={item} />)}</ul>
|
|
<ul>{cartArr.map(item => <CCartItem cart={item.good} count={item} />)}</ul>
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|
|
@@ -366,8 +366,8 @@ const Main = () =>
|
|
<Redirect from='/main' to='/' />
|
|
<Redirect from='/main' to='/' />
|
|
<Route path="/" component={PageMain} exact/>
|
|
<Route path="/" component={PageMain} exact/>
|
|
<Route path="/category/:_id" component={CPageCategory}/>
|
|
<Route path="/category/:_id" component={CPageCategory}/>
|
|
|
|
+ <Route path="/cart" component={CCart} />
|
|
<Route path="*" component={Page404} />
|
|
<Route path="*" component={Page404} />
|
|
- <Route path="/cart" component={Cart} />
|
|
|
|
|
|
|
|
{/* <CCategory /> */}
|
|
{/* <CCategory /> */}
|
|
{/* <LoginForm onLogin={(l, p) => actionFullLogin(l, p)}/> */}
|
|
{/* <LoginForm onLogin={(l, p) => actionFullLogin(l, p)}/> */}
|