Skip to content

Commit

Permalink
Relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bgonp committed Feb 15, 2021
1 parent 99c98f1 commit 1bed3f3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.env
.eslintignore
.eslintrc
.prettier
.vscode/
src/
tsconfig.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bgon-custom-hooks",
"version": "0.4.0",
"version": "0.5.1",
"description": "React tools",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/ClickControlContext.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createContext, FC } from 'react'

import { useClickControl } from 'hooks/useClickControl'
import { ClickControlContextType } from 'types'
import { useClickControl } from '../hooks/useClickControl'
import { ClickControlContextType } from '../types'

export const ClickControlContext = createContext<ClickControlContextType>({
isLeftClicked: false,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useClickControl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MouseEvent, useCallback, useState } from 'react'

import { UseClickControlType } from 'types'
import { UseClickControlType } from '../types'

export const useClickControl = (): UseClickControlType => {
const [isLeftClicked, setLeftClicked] = useState<boolean>(false)
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useLocalStorage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useCallback, useEffect, useState } from 'react'

import { UseLocalStorageType } from 'types'
import { UseLocalStorageType } from '../types'

export const useLocalStorage = <T>(
key: string,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useTimeout.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useCallback, useEffect, useState } from 'react'

import { UseTimeoutType } from 'types'
import { UseTimeoutType } from '../types'

export const useTimeout = (): UseTimeoutType => {
const [timeout, setTimeoutValue] = useState<number | null>(null)
Expand Down

0 comments on commit 1bed3f3

Please sign in to comment.