Skip to content

Commit

Permalink
fix: fixing prettier mdx mess
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 24, 2024
1 parent 5867337 commit ebff1ac
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions docs/getting-started/authoring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,14 @@ export function Box(props) {
scale={active ? 1.5 : 1}
onClick={(event) => setActive(!active)}
onPointerOver={(event) => setHover(true)}
onPointerOut={(event) => setHover(false)}>
onPointerOut={(event) => setHover(false)}
>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
</mesh>
)
}`,
'/App.js': `import { Canvas } from '@react-three/fiber'
'/App.js': `import {Canvas} from '@react-three/fiber'
import {Box} from './Box'
export default function App() {
Expand Down Expand Up @@ -134,20 +135,20 @@ export function Box(props) {
useFrame((state, delta) => (meshRef.current.rotation.x += delta))
return (
{' '}
<mesh
{...props}
ref={meshRef}
scale={active ? 1.5 : 1}
onClick={(event) => setActive(!active)}
onPointerOver={(event) => setHover(true)}
onPointerOut={(event) => setHover(false)}
>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
{...props}
ref={meshRef}
scale={active ? 1.5 : 1}
onClick={(event) => setActive(!active)}
onPointerOver={(event) => setHover(true)}
onPointerOut={(event) => setHover(false)} >
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
</mesh>
) }`, '/App.js': `import {Canvas} from '@react-three/fiber' import {Box} from './Box'
)
}`,
'/App.js': `import {Canvas} from '@react-three/fiber'
import {Box} from './Box'
export default function App() {
return (
Expand Down

0 comments on commit ebff1ac

Please sign in to comment.