fix: remove SMS deletion modal
This commit is contained in:
parent
cd01d894a3
commit
ec377cd0b9
1 changed files with 0 additions and 13 deletions
|
|
@ -5,7 +5,6 @@ import gql from 'graphql-tag'
|
||||||
import * as R from 'ramda'
|
import * as R from 'ramda'
|
||||||
import React, { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
|
|
||||||
import { DeleteDialog } from 'src/components/DeleteDialog'
|
|
||||||
import { HoverableTooltip } from 'src/components/Tooltip'
|
import { HoverableTooltip } from 'src/components/Tooltip'
|
||||||
import { IconButton } from 'src/components/buttons'
|
import { IconButton } from 'src/components/buttons'
|
||||||
import { Switch } from 'src/components/inputs'
|
import { Switch } from 'src/components/inputs'
|
||||||
|
|
@ -118,7 +117,6 @@ const SMSPreview = ({ sms, coords }) => {
|
||||||
const SMSNotices = () => {
|
const SMSNotices = () => {
|
||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
|
|
||||||
const [deleteDialog, setDeleteDialog] = useState(false)
|
|
||||||
const [showModal, setShowModal] = useState(false)
|
const [showModal, setShowModal] = useState(false)
|
||||||
const [selectedSMS, setSelectedSMS] = useState(null)
|
const [selectedSMS, setSelectedSMS] = useState(null)
|
||||||
const [previewOpen, setPreviewOpen] = useState(false)
|
const [previewOpen, setPreviewOpen] = useState(false)
|
||||||
|
|
@ -149,7 +147,6 @@ const SMSNotices = () => {
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
setShowModal(false)
|
setShowModal(false)
|
||||||
setSelectedSMS(null)
|
setSelectedSMS(null)
|
||||||
setDeleteDialog(false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const elements = [
|
const elements = [
|
||||||
|
|
@ -247,16 +244,6 @@ const SMSNotices = () => {
|
||||||
submit={editMessage}
|
submit={editMessage}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<DeleteDialog
|
|
||||||
open={deleteDialog}
|
|
||||||
onDismissed={() => {
|
|
||||||
handleClose()
|
|
||||||
}}
|
|
||||||
onConfirmed={() => {
|
|
||||||
handleClose()
|
|
||||||
}}
|
|
||||||
errorMessage={errorMsg}
|
|
||||||
/>
|
|
||||||
{previewOpen && <SMSPreview sms={selectedSMS} coords={previewCoords} />}
|
{previewOpen && <SMSPreview sms={selectedSMS} coords={previewCoords} />}
|
||||||
<DataTable
|
<DataTable
|
||||||
emptyText="No SMS notices so far"
|
emptyText="No SMS notices so far"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue