Skip to content

Commit

Permalink
upgrade editor and notes editor
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Aug 22, 2024
1 parent b09f782 commit ec6560c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 141 deletions.
4 changes: 2 additions & 2 deletions lib/editor/typrNotesProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getUserArticle } from "@/lib/api";
// import { loggedInMenu } from "./menus/loggedInMenu";

export const typrNotesProps = ({ user, userLoading, mutateUser, router }) => ({
enablePublishingFlow: true,
enablePublishingFlow: false,
theme: "blue",
editorWidth: "590px",
components: {
Expand Down Expand Up @@ -50,7 +50,7 @@ export const typrNotesProps = ({ user, userLoading, mutateUser, router }) => ({
return postObject;
},
save: async ({ entry, postId }) => {
const postObject = await savePost({ entry, postId, user });
const postObject = await savePost({ entry, postId, user, type: "note" });
return postObject;
},
create: async ({ entry }) => {
Expand Down
168 changes: 31 additions & 137 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"swiper": "^8.0.0",
"swr": "^1.3.0",
"tailwindcss-border-gradient-radius": "^3.0.1",
"tiptypr": "^0.0.84",
"tiptypr": "^0.0.86",
"tsparticles": "^2.7.1",
"uuidv4": "^6.2.13",
"yup": "^0.32.11",
Expand Down Expand Up @@ -168,7 +168,7 @@
"tailwindcss-scoped-groups": "^2.0.0"
},
"optionalDependencies": {
"@prototypr/paper-interview": "^0.0.469",
"@prototypr/paper-interview": "^0.0.471",
"@prototypr/prototypr-postie": "^1.0.91"
}
}

0 comments on commit ec6560c

Please sign in to comment.