Skip to content

Commit 48e7ebe

Browse files
committed
Small fixes
1 parent 5b5331d commit 48e7ebe

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
{
22
"name": "react-scroll-utilities",
33
"private": false,
4-
"version": "0.2.3",
4+
"version": "0.2.4",
55
"type": "module",
6-
"main": "src/lib/index.tsx",
6+
"main": "./src/lib/index.tsx",
77
"homepage": "https://github.com/zJaaal/react-scroll-utilities#readme",
8-
"keywords": ["scroll", "react-components", "react-hooks", "utils"],
8+
"keywords": [
9+
"scroll",
10+
"react-components",
11+
"react-hooks",
12+
"utils"
13+
],
914
"author": {
1015
"name": "Jalinson Diaz",
1116
"email": "[email protected]",
1217
"url": "https://zjaaaldev.netlify.app"
1318
},
14-
"files": ["src/lib"],
19+
"files": [
20+
"src/lib"
21+
],
1522
"scripts": {
1623
"dev": "vite",
1724
"build": "tsc && vite build",

src/lib/hooks/useDirection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useContext, useEffect, useState } from "react";
22
import ScrollContext from "../context/ScrollContext";
33
import { Directions } from "../types";
4-
import validateScrollValue from "../../utils/validateScrollValue";
4+
import validateScrollValue from "../utils/validateScrollValue";
55

66
const useDirection = () => {
77
const scrollState = useContext(ScrollContext);

src/lib/hooks/useProximity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import React, {
66
useState,
77
} from "react";
88
import ScrollContext from "../context/ScrollContext";
9-
import validateScrollValue from "../../utils/validateScrollValue";
9+
import validateScrollValue from "../utils/validateScrollValue";
1010

1111
const useProximity = (ref: RefObject<any>) => {
1212
const scrollState = useContext(ScrollContext);
File renamed without changes.

0 commit comments

Comments
 (0)