File tree 2 files changed +14
-13
lines changed
2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1
1
/** @type {import("lint-staged").Config } */
2
2
const config = {
3
- '*' : [ 'prettier --ignore-path .gitignore --ignore- unknown --write' ] ,
3
+ '*' : [ 'prettier --ignore-unknown --write' ] ,
4
4
}
5
5
6
6
export default config
Original file line number Diff line number Diff line change @@ -151,18 +151,19 @@ export function Box(props) {
151
151
const [active, setActive] = useState(false)
152
152
useFrame((state, delta) => (meshRef.current.rotation.x += delta))
153
153
154
- return (
155
- <mesh
156
- {...props}
157
- ref={meshRef}
158
- scale={active ? 1.5 : 1}
159
- onClick={(event) => setActive(!active)}
160
- onPointerOver={(event) => setHover(true)}
161
- onPointerOut={(event) => setHover(false)} >
162
- <boxGeometry args={[1, 1, 1]} />
163
- <meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
164
- </mesh>
165
- )
154
+ return (
155
+ <mesh
156
+ {...props}
157
+ ref={meshRef}
158
+ scale={active ? 1.5 : 1}
159
+ onClick={(event) => setActive(!active)}
160
+ onPointerOver={(event) => setHover(true)}
161
+ onPointerOut={(event) => setHover(false)}
162
+ >
163
+ <boxGeometry args={[1, 1, 1]} />
164
+ <meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
165
+ </mesh>
166
+ )
166
167
} ` ,
167
168
' /App.js' : ` import {Canvas} from '@react-three/fiber'
168
169
import {Box} from './Box'
You can’t perform that action at this time.
0 commit comments