Skip to content

Commit

Permalink
fix: prettierignore mdx files since not supported yet
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 24, 2024
1 parent d002c02 commit 5867337
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.next

# waiting for mdx3 support some day (https://github.com/prettier/prettier/issues/12209)
*.mdx
24 changes: 12 additions & 12 deletions docs/getting-started/authoring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,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 5867337

Please sign in to comment.