4
0
forked from crowetic/commerce

build changes

This commit is contained in:
Belen Curcio 2020-10-02 13:08:19 -03:00
parent f536dab1a2
commit 01f5b460d1
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

@ -43,6 +43,7 @@ export const useUI = () => {
}
function uiReducer(state: State, action: Action) {
console.log(action)
switch (action.type) {
case 'OPEN_SIDEBAR': {
return {