mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
Adds missing openSidebar to useUI hook
This commit is contained in:
parent
c5cc9390a3
commit
7cd1910f82
@ -21,7 +21,7 @@ const countItem = (count: number, item: LineItem) => count + item.quantity
|
|||||||
const UserNav: FC<Props> = ({ className }) => {
|
const UserNav: FC<Props> = ({ className }) => {
|
||||||
const { data } = useCart()
|
const { data } = useCart()
|
||||||
const { data: customer } = useCustomer()
|
const { data: customer } = useCustomer()
|
||||||
const { toggleSidebar, closeSidebarIfPresent, openModal, setSidebarView } =
|
const { openSidebar, closeSidebarIfPresent, openModal, setSidebarView } =
|
||||||
useUI()
|
useUI()
|
||||||
const itemsCount = data?.lineItems.reduce(countItem, 0) ?? 0
|
const itemsCount = data?.lineItems.reduce(countItem, 0) ?? 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user