forked from crowetic/commerce
build changes
This commit is contained in:
parent
f536dab1a2
commit
01f5b460d1
@ -12,7 +12,7 @@ const CartSidebarView: FC = () => {
|
||||
<div className="flex items-start justify-between space-x-3">
|
||||
<div className="h-7 flex items-center">
|
||||
<button
|
||||
onClick={() => closeSidebar}
|
||||
onClick={() => closeSidebar()}
|
||||
aria-label="Close panel"
|
||||
className="text-gray-400 hover:text-gray-500 transition ease-in-out duration-150"
|
||||
>
|
||||
|
@ -16,7 +16,7 @@ const UserNav: FC<Props> = ({ className }) => {
|
||||
return (
|
||||
<nav className={rootClassName}>
|
||||
<ul className={s.list}>
|
||||
<li className={s.item} onClick={() => openSidebar}>
|
||||
<li className={s.item} onClick={() => openSidebar()}>
|
||||
<Bag />
|
||||
<span className="bg-black h-4 w-4 absolute rounded-full inset-3 text-white flex items-center justify-center font-bold text-xs">
|
||||
1
|
||||
|
@ -43,6 +43,7 @@ export const useUI = () => {
|
||||
}
|
||||
|
||||
function uiReducer(state: State, action: Action) {
|
||||
console.log(action)
|
||||
switch (action.type) {
|
||||
case 'OPEN_SIDEBAR': {
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user