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:
Catalin Pinte
2022-09-19 08:14:49 +03:00
committed by GitHub
parent 87134e2990
commit 11609a9e71
46 changed files with 10129 additions and 8084 deletions

View File

@@ -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
}
/**

View File

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

View File

@@ -17,7 +17,7 @@ export const useUserAvatar = (name = 'userAvatar') => {
localStorage.setItem(name, value)
setUserAvatar(value)
}
}, [])
}, [name, setUserAvatar, userAvatar])
return {
userAvatar,