Skip to content

Commit

Permalink
Remove edit copy link (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
farisd16 authored Dec 10, 2024
1 parent 754f296 commit 3a1fb53
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ export const ShareModal: React.FC<ModalContentProps> = ({ close }) => {

const getLinkForView = (token?: string) => {
if (LocalStorageRepository.getLastPublishedType() === DiagramView.EMBED) {
return (
`![${
diagram ? diagram.title : 'Diagram'
}](${DEPLOYMENT_URL}/api/diagrams/${LocalStorageRepository.getLastPublishedToken()}?type=svg)` +
`\n[Edit a copy](${DEPLOYMENT_URL}/${LocalStorageRepository.getLastPublishedToken()}?view=${DiagramView.EDIT})`
);
return `![${
diagram ? diagram.title : 'Diagram'
}](${DEPLOYMENT_URL}/api/diagrams/${LocalStorageRepository.getLastPublishedToken()}?type=svg)`;
}

return `${DEPLOYMENT_URL}/${token || LocalStorageRepository.getLastPublishedToken()}?view=${LocalStorageRepository.getLastPublishedType()}`;
Expand Down

0 comments on commit 3a1fb53

Please sign in to comment.