Skip to content

Commit 0b114ea

Browse files
Merge pull request #346 from NordicSemiconductor/update/prettier
Update prettier
2 parents 26370de + f20cc21 commit 0b114ea

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"mousetrap": "1.6.5",
8888
"npm-run-all2": "5.0.2",
8989
"nrf-intel-hex": "^1.3.0",
90-
"prettier": "2.5.1",
90+
"prettier": "2.6.2",
9191
"prettysize": "2.0.0",
9292
"protobufjs": "^6.11.2",
9393
"react-bootstrap": "1.6.4",

src/Slider/Handle.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ const Handle: FC<Props> = ({
4444
const [currentlyDragged, setCurrentlyDragged] = useState(false);
4545
const percentage = toPercentage(value, range);
4646

47-
const onMouseDragStart =
48-
useRef<{ mousePosition: number; percentage: number }>();
47+
const onMouseDragStart = useRef<{
48+
mousePosition: number;
49+
percentage: number;
50+
}>();
4951

5052
// We have to put the callbacks into refs, so that we do not call outdated references later
5153
const onChangeRef = useAutoupdatingRef(onChange);

0 commit comments

Comments
 (0)