Skip to content

Commit

Permalink
style: realign code with Prettier (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaic4o authored Mar 17, 2024
1 parent 4a7ff03 commit acfae48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 25 deletions.
30 changes: 6 additions & 24 deletions .storybook/public/suzanne-high-poly.gltf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"scenes": [
{
"name": "Scene",
"nodes": [
0
]
"nodes": [0]
}
],
"nodes": [
Expand Down Expand Up @@ -54,16 +52,8 @@
{
"componentType": 5126,
"count": 10206,
"max": [
0.9306385004351532,
1.5072998966190019,
0.5770668715282248
],
"min": [
-0.9306385004351532,
0.16743480326434024,
-0.5456946575472748
],
"max": [0.9306385004351532, 1.5072998966190019, 0.5770668715282248],
"min": [-0.9306385004351532, 0.16743480326434024, -0.5456946575472748],
"type": "VEC3"
},
{
Expand Down Expand Up @@ -94,19 +84,11 @@
"materials": [
{
"name": "default",
"emissiveFactor": [
0,
0,
0
],
"emissiveFactor": [0, 0, 0],
"alphaMode": "OPAQUE",
"doubleSided": false
}
],
"extensionsRequired": [
"KHR_draco_mesh_compression"
],
"extensionsUsed": [
"KHR_draco_mesh_compression"
]
"extensionsRequired": ["KHR_draco_mesh_compression"],
"extensionsUsed": ["KHR_draco_mesh_compression"]
}
7 changes: 6 additions & 1 deletion src/web/useCursor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import * as React from 'react'

export function useCursor(hovered: boolean, onPointerOver = 'pointer', onPointerOut = 'auto', container: HTMLElement = document.body) {
export function useCursor(
hovered: boolean,
onPointerOver = 'pointer',
onPointerOut = 'auto',
container: HTMLElement = document.body
) {
React.useEffect(() => {
if (hovered) {
container.style.cursor = onPointerOver
Expand Down

0 comments on commit acfae48

Please sign in to comment.