fix: fixing pre-lanuch issues

- store post's body as markdown
- stories page design changes
- thick borders post details page
- make text-editor toolbar sticky
- fix update post api
- change dropdown icons to emojis
- remove vote/comments stats from postDetailsPage
- remove "Type of post" component from createPostPage & replace it with back button
- change insert tags placeholder text
This commit is contained in:
MTG2000
2022-06-13 16:32:31 +03:00
parent 28549df6d4
commit e46649513d
30 changed files with 309 additions and 172 deletions

View File

@@ -18,7 +18,10 @@ export default function SaveModule(props: Props) {
const changeCallback = useDebouncedCallback(ctx => {
const { state } = ctx;
onChange(getHTML(state));
const md = getMarkdown(state);
console.log(md);
onChange(md);
}, [], 500)
useRemirrorContext(changeCallback)