From ec377cd0b9b36c2851ae3a044743fed55ec9b165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Tue, 15 Feb 2022 15:42:18 +0000 Subject: [PATCH] fix: remove SMS deletion modal --- .../src/pages/OperatorInfo/SMSNotices/SMSNotices.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/new-lamassu-admin/src/pages/OperatorInfo/SMSNotices/SMSNotices.js b/new-lamassu-admin/src/pages/OperatorInfo/SMSNotices/SMSNotices.js index 3e56aae1..4a1bb469 100644 --- a/new-lamassu-admin/src/pages/OperatorInfo/SMSNotices/SMSNotices.js +++ b/new-lamassu-admin/src/pages/OperatorInfo/SMSNotices/SMSNotices.js @@ -5,7 +5,6 @@ import gql from 'graphql-tag' import * as R from 'ramda' import React, { useState } from 'react' -import { DeleteDialog } from 'src/components/DeleteDialog' import { HoverableTooltip } from 'src/components/Tooltip' import { IconButton } from 'src/components/buttons' import { Switch } from 'src/components/inputs' @@ -118,7 +117,6 @@ const SMSPreview = ({ sms, coords }) => { const SMSNotices = () => { const classes = useStyles() - const [deleteDialog, setDeleteDialog] = useState(false) const [showModal, setShowModal] = useState(false) const [selectedSMS, setSelectedSMS] = useState(null) const [previewOpen, setPreviewOpen] = useState(false) @@ -149,7 +147,6 @@ const SMSNotices = () => { const handleClose = () => { setShowModal(false) setSelectedSMS(null) - setDeleteDialog(false) } const elements = [ @@ -247,16 +244,6 @@ const SMSNotices = () => { submit={editMessage} /> )} - { - handleClose() - }} - onConfirmed={() => { - handleClose() - }} - errorMessage={errorMsg} - /> {previewOpen && }