Skip to content

Commit 9bc0672

Browse files
committed
fix: eslint in book-web
1 parent 83f5004 commit 9bc0672

File tree

3 files changed

+98
-6
lines changed

3 files changed

+98
-6
lines changed

apps/book-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@types/react": "^18",
5858
"@types/react-dom": "^18",
5959
"@typescript-eslint/eslint-plugin": "^7.13.1",
60+
"@typescript-eslint/parser": "^7.16.0",
6061
"eslint": "^9.5.0",
6162
"inquirer": "^9.2.23",
6263
"postcss": "^8",

apps/book-web/src/layouts/MarkdownEditorLayout/MarkdownEditorLayout.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ function MarkdownEditorLayout({ children, mdxText }: Props) {
3535
const { mutateAsync: createPageAsyncMutate, isPending: isCreatePending } = useCreatePageMutation()
3636
const { mutateAsync: reorderAsyncMutate, isPending: isReorderPending } = useReorderPageMutation()
3737
const { mutateAsync: updatePageAsyncMutate, isPending: isUpdatePending } = useUpdatePageMutation()
38-
const { mutateAsync: buildAsyncMutate, isPending: isBuildPending } = useBuildMutation()
39-
const { mutateAsync: deployAsyncMutate, isPending: isDeployPending } = useDeployMutation()
40-
const { mutateAsync: deletePageAsyncMutate, isPending: isDeletePagePending } =
41-
useDeletePageMutation()
38+
const { mutateAsync: buildAsyncMutate } = useBuildMutation()
39+
const { mutateAsync: deployAsyncMutate } = useDeployMutation()
40+
const { mutateAsync: deletePageAsyncMutate } = useDeletePageMutation()
4241

4342
const {
4443
data: getPagesData,
@@ -66,7 +65,7 @@ function MarkdownEditorLayout({ children, mdxText }: Props) {
6665
useEffect(() => {
6766
if (!deployCompleted.data) return
6867
console.log(deployCompleted)
69-
const { message, published_url } = deployCompleted.data
68+
const { published_url } = deployCompleted.data
7069
if (published_url) {
7170
console.log('published_url in client', published_url)
7271
const event = new CustomEvent(markdownCustomEventName.deployEndEvent, {

pnpm-lock.yaml

Lines changed: 93 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)