mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Upgrade dependencies & pnpm (#785)
* Updated log * Updates to root * Updates to pnpm * successfully moved to pnpm * type issue * Local as the default provider * Upgrade dependencies * Revert to local * Upgrade React * Update node-fetch deps * Fix types * Ignore warnings * Fix missing dependency * Update pnpm-lock.yaml * Add missing @types/cookie * Upgrade dependencies * Fix missing dependencies * Update README.md Co-authored-by: Bel Curcio <curciobel@gmail.com>
This commit is contained in:
@@ -6,14 +6,16 @@ import React, {
|
||||
ReactElement,
|
||||
forwardRef,
|
||||
Ref,
|
||||
ReactNode,
|
||||
} from 'react'
|
||||
import mergeRefs from 'react-merge-refs'
|
||||
import { mergeRefs } from 'react-merge-refs'
|
||||
import hasParent from './has-parent'
|
||||
|
||||
interface ClickOutsideProps {
|
||||
active: boolean
|
||||
onClick: (e?: MouseEvent) => void
|
||||
ref?: Ref<any>
|
||||
children?: ReactNode
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -53,6 +53,7 @@ export default function FocusTrap({ children, focusFirst = false }: Props) {
|
||||
return () => {
|
||||
returnFocus()
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [root, children])
|
||||
|
||||
return React.createElement(
|
||||
|
@@ -17,7 +17,7 @@ export const useUserAvatar = (name = 'userAvatar') => {
|
||||
localStorage.setItem(name, value)
|
||||
setUserAvatar(value)
|
||||
}
|
||||
}, [])
|
||||
}, [name, setUserAvatar, userAvatar])
|
||||
|
||||
return {
|
||||
userAvatar,
|
||||
|
Reference in New Issue
Block a user