Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
edelgarat committed Apr 2, 2024
1 parent ee0ff26 commit 4f60016
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@worksolutions/react-utils",
"private": false,
"version": "2.2.3",
"version": "2.2.4",
"description": "",
"types": "dist/esm/index.d.ts",
"main": "dist/cjs/index.js",
Expand Down
5 changes: 0 additions & 5 deletions src/global.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/hooks/files/useFileSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function useFileSelector(
[multiply, onChange],
);
const input = React.useMemo(
() => (process.browser ? createFileInput(handleChange, multiply, acceptTypes) : null),
() => (typeof window === "undefined" ? null : createFileInput(handleChange, multiply, acceptTypes)),
[multiply, handleChange, acceptTypes],
);
const [dropAreaProps, dropAreaState] = useDropArea({ onFiles: handleChange });
Expand Down

0 comments on commit 4f60016

Please sign in to comment.