Changeset 55ed171 for frontend/src/components
- Timestamp:
- 10/15/22 15:28:57 (2 years ago)
- Branches:
- master
- Children:
- 113029b
- Parents:
- ee05663
- Location:
- frontend/src/components
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/components/Header.js
ree05663 r55ed171 518 518 <div className="header__right"> 519 519 <div className="header__buttons"> 520 {userInfo ?(520 {userInfo && userInfo.isAdmin && ( 521 521 <NavDropdown 522 522 title={ … … 541 541 <NavDropdown.Item 542 542 onClick={() => { 543 navigate("/ orderhistory");543 navigate("/admin/dashboard"); 544 544 }} 545 545 > 546 Нарачки546 Dashboard 547 547 </NavDropdown.Item> 548 548 … … 556 556 </NavDropdown.Item> 557 557 </NavDropdown> 558 ) : ( 558 )} 559 {userInfo && !userInfo.isAdmin && ( 560 <NavDropdown 561 title={ 562 <span> 563 <AccountCircleIcon 564 className="header__login" 565 fontSize="large" 566 /> 567 <p>{userInfo.name}</p> 568 </span> 569 } 570 id="basic-nav-dropdown" 571 > 572 <NavDropdown.Item 573 onClick={() => { 574 navigate("/profile"); 575 }} 576 > 577 Профил 578 </NavDropdown.Item> 579 580 <NavDropdown.Item 581 onClick={() => { 582 navigate("/orderhistory"); 583 }} 584 > 585 Нарачки 586 </NavDropdown.Item> 587 588 <NavDropdown.Divider /> 589 <NavDropdown.Item 590 className="drowdown-item" 591 to="#signout" 592 onClick={signoutHandler} 593 > 594 Одјави се 595 </NavDropdown.Item> 596 </NavDropdown> 597 )} 598 {!userInfo && ( 559 599 <Link 560 600 to={"/signin"} -
frontend/src/components/Product.js
ree05663 r55ed171 15 15 return ( 16 16 <div className="product__container"> 17 <Link to={`/product/${product.slug}`}> 18 <div className="product__img"> 19 <img src={product.image} alt="product"></img> 17 <Link to={`/product/${product.slug}`} style={{ height: "165.91px" }}> 18 <div className="product__img" style={{ height: "100%" }}> 19 <img 20 src={product.image} 21 alt="product" 22 style={{ height: "100%" }} 23 ></img> 20 24 </div> 21 25 </Link>
Note:
See TracChangeset
for help on using the changeset viewer.