Skip to content

Commit abb7092

Browse files
committed
fix: updating formatting
1 parent a6cbdc6 commit abb7092

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

src/useBoolean/useBoolean.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import { useMemo, useState } from 'react'
88
* Use with caution, attaching to buttons can cause unintended consequences from double clicks.
99
* @params startState (optional) starting value
1010
*/
11-
export function useBoolean(
12-
startState = false
13-
): [
11+
export function useBoolean(startState = false): [
1412
boolean,
1513
{
1614
toggle: () => void

src/useClipboard/useClipboard.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import { useState } from 'react'
77
*
88
* @param {number | undefined} timeout set to change the default timeout for notification of copy
99
*/
10-
export function useClipboard(
11-
timeout = 2000
12-
): {
10+
export function useClipboard(timeout = 2000): {
1311
copy: (valueToCopy: string) => Promise<void>
1412
reset: () => void
1513
error: Error | undefined

src/usePagination/usePagination.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ export function usePagination({
5050
endIndex,
5151
isNextDisabled,
5252
isPreviousDisabled,
53-
} = useMemo(() => getDerivedData(totalItems, pageSize, page), [
54-
page,
55-
pageSize,
56-
totalItems,
57-
])
53+
} = useMemo(
54+
() => getDerivedData(totalItems, pageSize, page),
55+
[page, pageSize, totalItems]
56+
)
5857

5958
const setTotalItems = useCallback((newTotalItems: number) => {
6059
setTotalItemsInternal(Math.max(0, newTotalItems))

0 commit comments

Comments
 (0)