Skip to content

Commit e46476c

Browse files
committed
chore: remove default exports
1 parent 001b1ef commit e46476c

File tree

8 files changed

+23
-43
lines changed

8 files changed

+23
-43
lines changed

package-lock.json

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

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "git+https://github.com/helpwave/hightide.git"
88
},
99
"license": "MPL-2.0",
10-
"version": "0.0.16",
10+
"version": "0.0.17",
1111
"files": [
1212
"dist"
1313
],
@@ -36,10 +36,13 @@
3636
"@radix-ui/react-checkbox": "1.1.3",
3737
"@tailwindcss/cli": "^4.1.7",
3838
"clsx": "^2.1.1",
39+
"next": "15.2.4",
3940
"lucide-react": "0.468.0",
4041
"postcss": "^8.5.3",
4142
"prop-types": "15.8.1",
43+
"react": "18.3.1",
4244
"react-custom-scrollbars-2": "4.5.0",
45+
"react-dom": "18.3.1",
4346
"simplebar-core": "1.3.0",
4447
"simplebar-react": "3.3.0",
4548
"tailwindcss": "^4.1.3",
@@ -72,11 +75,6 @@
7275
"typescript": "^5.7.2",
7376
"webpack": "5.97.1"
7477
},
75-
"peerDependencies": {
76-
"next": "15.2.4",
77-
"react": "18.3.1",
78-
"react-dom": "18.3.1"
79-
},
8078
"keywords": [
8179
"react",
8280
"tailwindcss",

src/components/user-input/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import React, {
77
type InputHTMLAttributes, forwardRef
88
} from 'react'
99
import clsx from 'clsx'
10-
import useSaveDelay from '../../hooks/useSaveDelay'
10+
import { useSaveDelay } from '../../hooks/useSaveDelay'
1111
import { noop } from '../../util/noop'
1212
import type { LabelProps } from './Label'
1313
import { Label } from './Label'

src/components/user-input/Textarea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { TextareaHTMLAttributes } from 'react'
22
import { useState } from 'react'
33
import clsx from 'clsx'
4-
import useSaveDelay from '../../hooks/useSaveDelay'
4+
import { useSaveDelay } from '../../hooks/useSaveDelay'
55
import { noop } from '../../util/noop'
66
import type { LabelProps } from './Label'
77
import { Label } from './Label'

src/components/user-input/ToggleableInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState } from 'react'
22
import type { HTMLInputTypeAttribute, InputHTMLAttributes } from 'react'
33
import { Pencil } from 'lucide-react'
44
import clsx from 'clsx'
5-
import useSaveDelay from '../../hooks/useSaveDelay'
5+
import { useSaveDelay } from '../../hooks/useSaveDelay'
66
import { noop } from '../../util/noop'
77

88
type InputProps = {

src/hooks/useLanguage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Dispatch, PropsWithChildren, SetStateAction } from 'react'
22
import { createContext, useContext, useEffect, useState } from 'react'
3-
import useLocalStorage from './useLocalStorage'
3+
import { useLocalStorage } from './useLocalStorage'
44

55
export const languages = ['en', 'de'] as const
66
export type Languages = typeof languages[number]

src/hooks/useLocalStorage.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useCallback, useEffect, useState } from 'react'
33
import { LocalStorageService } from '../util/storage'
44

55
type SetValue<T> = Dispatch<SetStateAction<T>>
6-
const useLocalStorage = <T, >(key: string, initValue: T): [T, SetValue<T>] => {
6+
export const useLocalStorage = <T, >(key: string, initValue: T): [T, SetValue<T>] => {
77
const get = useCallback((): T => {
88
if (typeof window === 'undefined') {
99
return initValue
@@ -28,6 +28,4 @@ const useLocalStorage = <T, >(key: string, initValue: T): [T, SetValue<T>] => {
2828
}, []) // eslint-disable-line react-hooks/exhaustive-deps
2929

3030
return [storedValue, setValue]
31-
}
32-
33-
export default useLocalStorage
31+
}

src/hooks/useSaveDelay.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useState } from 'react'
22

3-
function useSaveDelay(setNotificationStatus: (isShowing: boolean) => void, delay: number) {
3+
export function useSaveDelay(setNotificationStatus: (isShowing: boolean) => void, delay: number) {
44
const [updateTimer, setUpdateTimer] = useState<NodeJS.Timeout | undefined>(undefined)
55
const [notificationTimer, setNotificationTimer] = useState<NodeJS.Timeout | undefined>(undefined)
66

@@ -41,6 +41,4 @@ function useSaveDelay(setNotificationStatus: (isShowing: boolean) => void, delay
4141
}, []) // eslint-disable-line react-hooks/exhaustive-deps
4242

4343
return { restartTimer, clearUpdateTimer }
44-
}
45-
46-
export default useSaveDelay
44+
}

0 commit comments

Comments
 (0)