Skip to content

Commit

Permalink
Update packages/vkui/src/components/CustomScrollView/CustomScrollView…
Browse files Browse the repository at this point in the history
….tsx

Co-authored-by: Inomdzhon Mirdzhamolov <[email protected]>
  • Loading branch information
SevereCloud and inomdzhon authored Jan 23, 2024
1 parent 370df60 commit 93da177
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ import styles from './CustomScrollView.module.css';

function hasPointerClassName(hasPointer: boolean | undefined) {
switch (hasPointer) {
case undefined:
return styles['CustomScrollView--hasPointer-none'];
case true:
return styles['CustomScrollView--hasPointer-true'];
case false:
return styles['CustomScrollView--hasPointer-false'];

Check warning on line 18 in packages/vkui/src/components/CustomScrollView/CustomScrollView.tsx

View check run for this annotation

Codecov / codecov/patch

packages/vkui/src/components/CustomScrollView/CustomScrollView.tsx#L17-L18

Added lines #L17 - L18 were not covered by tests
case undefined:
default:
return styles['CustomScrollView--hasPointer-none'];
}

return styles['CustomScrollView--hasPointer-true'];
}

export interface CustomScrollViewProps
Expand Down

0 comments on commit 93da177

Please sign in to comment.