Skip to content

Commit

Permalink
chore: prevent prettier from butchering mdx file
Browse files Browse the repository at this point in the history
  • Loading branch information
PupoSDC committed Aug 2, 2023
1 parent 8642ae0 commit a074cf5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ pnpm-lock.yaml

# Content produced by build steps
apps/next-app/public/storybook
apps/next-app/public/content
apps/next-app/public/content

# markdown files that otherwise get butchered
apps/next-app/pages/articles/blog/003-new-737-question-bank.page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const meta = {
isoDate: "2023-08-02T20:00:00.000Z",
};

# 737 Type Rating Questions
# Introducing Our New 737 Type Rating Theory Question Bank

We are thrilled to announce the launch of our latest addition to the question
bank family: the comprehensive 737 Type Rating Theory Question Bank.
Expand All @@ -38,21 +38,21 @@ export const InLocoTestMakeer = () => {
const addTest = useTestProgress((s) => s.addTest);
const fallback = <Skeleton sx={{ height: 400, position: "initial" }} />

return (
<Sheet sx={{ p: 1 }}>
<NoSsr fallback={fallback}>
<Suspense fallback={fallback}>
<TestMaker
initialSubject={"737"}
onSuccessfulTestCreation={(test) => {
addTest({ test });
router.push(`/tests/${test.id}/${test.mode}`);
}}
/>
</Suspense>
</NoSsr>
</Sheet>
)
return (
<Sheet sx={{ p: 1 }}>
<NoSsr fallback={fallback}>
<Suspense fallback={fallback}>
<TestMaker
initialSubject={"737"}
onSuccessfulTestCreation={(test) => {
ddTest({ test });
router.push(`/tests/${test.id}/${test.mode}`);
}}
/>
</Suspense>
</NoSsr>
</Sheet>
);
}

<InLocoTestMakeer />
Expand Down

1 comment on commit a074cf5

@vercel
Copy link

@vercel vercel bot commented on a074cf5 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.