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="flex items-start justify-between space-x-3">
<div className="h-7 flex items-center"> <div className="h-7 flex items-center">
<button <button
onClick={() => closeSidebar} onClick={() => closeSidebar()}
aria-label="Close panel" aria-label="Close panel"
className="text-gray-400 hover:text-gray-500 transition ease-in-out duration-150" 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 ( return (
<nav className={rootClassName}> <nav className={rootClassName}>
<ul className={s.list}> <ul className={s.list}>
<li className={s.item} onClick={() => openSidebar}> <li className={s.item} onClick={() => openSidebar()}>
<Bag /> <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"> <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 1

View File

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