Skip to content

Commit

Permalink
Исправил баг c эскпортом заметки в вк
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed May 19, 2024
1 parent b94a5f7 commit 60cc86e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/src/components/NoteEditor/NoteEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class NoteEditor extends ScReact.Component<NoteEditorProps, NoteEditorTyp
handleClose={this.closeShareModal}
reset={false}
hideTitle={true}
content={<SharePanel public={this.state.selectedNote?.public}/>}
content={<SharePanel note={this.state.selectedNote}/>}
/>

<div className="note-background" style={`background: ${this.state.selectedNote?.header};`}>
Expand Down
5 changes: 3 additions & 2 deletions public/src/components/SharePanel/SharePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ export class SharePanel extends ScReact.Component<any, any> {
}

shareToVK = () => {
const url = "https://vk.com/share.php?url=" + this.getNoteURL()+ "&title=" + parseNoteTitle(this.props.note.title)
console.log("shareToVK")
const url = "https://vk.com/share.php?url=" + this.getNoteURL()+ "&title=" + parseNoteTitle(this.props.note.data.title)
this.openShareWindow(url)
}

shareToOK= () => {
const url = "https://connect.ok.ru/offer?url=" + this.getNoteURL() + "&title=" + parseNoteTitle(this.props.note.title)
const url = "https://connect.ok.ru/offer?url=" + this.getNoteURL() + "&title=" + parseNoteTitle(this.props.note.data.title)
this.openShareWindow(url)
}

Expand Down

0 comments on commit 60cc86e

Please sign in to comment.