@zubyCharles
Posted
That shouldnt be too difficult since you are making use of the context API. You just need to import your context where the cart icon is and take out the variable that represents the number of items in your cart then make the badge icon and put that variable inside it also make sure the value is only visible when the number of items in the cart is > 0; otherwise render null.
Marked as helpful
@Farouk-ayo
Posted
@zubyCharles yeah Charles.Thank you. i now got it fixed.
@zubyCharles
Posted
@eff-r-k nicely done.