Skip to content

Commit

Permalink
fix(ts): fix missing startScreen prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcath committed Nov 28, 2023
1 parent 42dd842 commit 8c41f27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/routes/aup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ const AcceptableUsePolicy = () => {
const {user, aup} = useLoaderData<typeof loader>()
const [signature, setSignature] = useState('')

const AUP = getMDXComponent(aup, {currentUser: user.username})
const AUP = getMDXComponent(aup, {
currentUser: user.username,
startScreen: false
})

return (
<div>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/doodle.$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const DoodlePreview = () => {
const [doodleClass, setDoodleClass] = useState(0)

const Preview = useMemo(
() => getMDXComponent(doodle.bodyCache, {currentUser}),
() => getMDXComponent(doodle.bodyCache, {currentUser, startScreen: true}),
[doodle.bodyCache, currentUser]
)

Expand Down

0 comments on commit 8c41f27

Please sign in to comment.