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="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"
|
||||||
>
|
>
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user