Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 8c53879

Browse files
authored
cleanup remains of ShareModal (#392)
after #373
1 parent 0551faa commit 8c53879

File tree

3 files changed

+1
-273
lines changed

3 files changed

+1
-273
lines changed

truthsayer/src/card/FullCardFootbar.jsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import CopyImg from './../img/copy.png'
1818
import ArchiveImg from './../img/archive.png'
1919
import DeleteImg from './../img/delete.png'
2020

21-
import { ShareModal } from './ShareModal'
22-
2321
import { MzdGlobalContext } from '../lib/global'
2422
import { NotificationToast } from '../lib/Toaster'
2523
import { slateToMarkdown } from 'librarius'
@@ -51,24 +49,14 @@ function nodeToMarkdown(node) {
5149
class PrivateFullCardFootbarImpl extends React.Component {
5250
constructor(props) {
5351
super(props)
54-
this.state = {
55-
modalShareShow: false,
56-
}
52+
this.state = {}
5753
this.deleteAbortController = new AbortController()
5854
}
5955

6056
static propTypes = {
6157
history: PropTypes.object.isRequired,
6258
}
6359

64-
hideShareDialog = (event) => {
65-
this.setState({ modalShareShow: false })
66-
}
67-
68-
showShareDialog = (event) => {
69-
this.setState({ modalShareShow: true })
70-
}
71-
7260
handleCopyMarkdown = () => {
7361
const toaster = this.props.context.toaster
7462
this.props.getMarkdown().then((md) => {
@@ -201,11 +189,6 @@ class PrivateFullCardFootbarImpl extends React.Component {
201189
</FootbarDropdownMenu>
202190
</FootbarDropdown>
203191
</div>
204-
<ShareModal
205-
show={this.state.modalShareShow}
206-
nid={this.props.nid}
207-
onHide={this.hideShareDialog}
208-
/>
209192
</>
210193
)
211194
}

truthsayer/src/card/ShareModal.js

Lines changed: 0 additions & 250 deletions
This file was deleted.

truthsayer/src/card/ShareModal.module.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)