mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-10 08:09:17 -06:00
Update usehooks-ts, @headlessui/react, fix minor linting
This commit is contained in:
@@ -20,6 +20,7 @@ const DependentImage = (props: DependentImageProps) => {
|
||||
<Image
|
||||
{...props}
|
||||
className={renderedClassName}
|
||||
alt="no"
|
||||
onLoadingComplete={() => {
|
||||
setLoaded(true);
|
||||
}}
|
||||
|
||||
@@ -33,6 +33,7 @@ const ItemCard = ({
|
||||
const [active, toggleActive, setActive] = useToggle();
|
||||
const router = useRouter();
|
||||
|
||||
// @ts-expect-error Some kind of regression in usehooks-ts causes the useOnClickOutside hook to not accept 'null' types
|
||||
useOnClickOutside(itemRef, (event) => {
|
||||
if (
|
||||
mobileButtonRef.current != null &&
|
||||
|
||||
Reference in New Issue
Block a user