Skip to content

Commit

Permalink
chore: run prettier (#3948)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokky0425 authored Nov 7, 2023
1 parent 6105619 commit 0322ab2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/PageCounter/PageCounter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ type Props = {
start: number
end: number
total?: number
decorators?: DecoratorsType<
'unitForTotal' | 'unit'
>
decorators?: DecoratorsType<'unitForTotal' | 'unit'>
}

const executeDecorator = (defaultText: string, decorator: DecoratorType | undefined) =>
Expand All @@ -21,7 +19,10 @@ const UNIT_TOTAL_TEXT = '件中'
const UNIT_TEXT = '件'

export const PageCounter: React.FC<Props> = ({ start, end, total = 0, decorators }) => {
const unitTotalText = useMemo(() => executeDecorator(UNIT_TOTAL_TEXT, decorators?.unitForTotal), [decorators?.unitForTotal])
const unitTotalText = useMemo(
() => executeDecorator(UNIT_TOTAL_TEXT, decorators?.unitForTotal),
[decorators?.unitForTotal],
)
const unitText = useMemo(() => executeDecorator(UNIT_TEXT, decorators?.unit), [decorators?.unit])

return (
Expand Down

0 comments on commit 0322ab2

Please sign in to comment.