Adds missing openSidebar to useUI hook

This commit is contained in:
ltueth 2022-03-12 20:49:10 +01:00 committed by GitHub
parent c5cc9390a3
commit 7cd1910f82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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