Skip to content

Commit

Permalink
fix: Move notification card out of cart button
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcell committed May 24, 2022
1 parent 7258881 commit 69a6a18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/AddNotification/AddNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ const AddNotification = (props) => {
</div>

<div className={styles.actionContainer}>
{/* <Button level={'secondary'}>view my bag (1)</Button> */}
{/* <Button onClick={() => navigate('/cart')} level={'primary'}>
<Button onClick={props.openCart} level={'secondary'}>view my bag (1)</Button>
<Button level="primary" href="/cart">
checkout
</Button> */}
</Button>
<div className={styles.linkContainer}>
<Link to={'/shop'}>continue shopping</Link>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ const Header = (prop) => {
<div className={styles.bagNotification}>
<span>1</span>
</div>
<div className={styles.notificationContainer}>
<AddNotification />
</div>
</button>
<div className={styles.notificationContainer}>
<AddNotification openCart={() => setShowMiniCart(true)} />
</div>
</div>
</div>

Expand Down

0 comments on commit 69a6a18

Please sign in to comment.