Skip to content

Commit

Permalink
Remove unused modals (#7184)
Browse files Browse the repository at this point in the history
These modals were no longer referenced anywhere.
  • Loading branch information
Gudahtt authored Sep 18, 2019
1 parent 8a08b32 commit 638149d
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 685 deletions.
101 changes: 0 additions & 101 deletions ui/app/components/app/modals/buy-options-modal.js

This file was deleted.

83 changes: 0 additions & 83 deletions ui/app/components/app/modals/edit-account-name-modal.js

This file was deleted.

96 changes: 0 additions & 96 deletions ui/app/components/app/modals/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ const { getEnvironmentType } = require('../../../../../app/scripts/lib/util')
const { ENVIRONMENT_TYPE_POPUP } = require('../../../../../app/scripts/lib/enums')

// Modal Components
const BuyOptions = require('./buy-options-modal')
const DepositEtherModal = require('./deposit-ether-modal')
import AccountDetailsModal from './account-details-modal'
const EditAccountNameModal = require('./edit-account-name-modal')
const ExportPrivateKeyModal = require('./export-private-key-modal')
const NewAccountModal = require('./new-account-modal')
const HideTokenConfirmationModal = require('./hide-token-confirmation-modal')
const NotifcationModal = require('./notification-modal')
const QRScanner = require('./qr-scanner')
Expand Down Expand Up @@ -81,32 +78,6 @@ const accountModalStyle = {
}

const MODALS = {
BUY: {
contents: [
h(BuyOptions, {}, []),
],
mobileModalStyle: {
width: '95%',
// top: isPopupOrNotification() === 'popup' ? '48vh' : '36.5vh',
transform: 'none',
left: '0',
right: '0',
margin: '0 auto',
boxShadow: '0 0 7px 0 rgba(0,0,0,0.08)',
top: '10%',
},
laptopModalStyle: {
width: '66%',
maxWidth: '550px',
top: 'calc(10% + 10px)',
left: '0',
right: '0',
margin: '0 auto',
boxShadow: '0 0 7px 0 rgba(0,0,0,0.08)',
transform: 'none',
},
},

DEPOSIT_ETHER: {
contents: [
h(DepositEtherModal, {}, []),
Expand Down Expand Up @@ -142,32 +113,6 @@ const MODALS = {
},
},

EDIT_ACCOUNT_NAME: {
contents: [
h(EditAccountNameModal, {}, []),
],
mobileModalStyle: {
width: '95%',
// top: isPopupOrNotification() === 'popup' ? '48vh' : '36.5vh',
top: '10%',
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
transform: 'none',
left: '0',
right: '0',
margin: '0 auto',
},
laptopModalStyle: {
width: '375px',
// top: 'calc(30% + 10px)',
top: '10%',
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
transform: 'none',
left: '0',
right: '0',
margin: '0 auto',
},
},

ADD_TO_ADDRESSBOOK: {
contents: [
h(AddToAddressBookModal, {}, []),
Expand Down Expand Up @@ -255,23 +200,6 @@ const MODALS = {
},
},

OLD_UI_NOTIFICATION_MODAL: {
contents: [
h(NotifcationModal, {
header: 'oldUI',
message: 'oldUIMessage',
}),
],
mobileModalStyle: {
width: '95%',
top: getEnvironmentType(window.location.href) === ENVIRONMENT_TYPE_POPUP ? '52vh' : '36.5vh',
},
laptopModalStyle: {
width: '449px',
top: 'calc(33% + 45px)',
},
},

GAS_PRICE_INFO_MODAL: {
contents: [
h(NotifcationModal, {
Expand Down Expand Up @@ -345,30 +273,6 @@ const MODALS = {
},
},

NEW_ACCOUNT: {
contents: [
h(NewAccountModal, {}, []),
],
mobileModalStyle: {
width: '95%',
// top: isPopupOrNotification() === 'popup' ? '52vh' : '36.5vh',
top: '10%',
transform: 'none',
left: '0',
right: '0',
margin: '0 auto',
},
laptopModalStyle: {
width: '449px',
// top: 'calc(33% + 45px)',
top: '10%',
transform: 'none',
left: '0',
right: '0',
margin: '0 auto',
},
},

CUSTOMIZE_GAS: {
contents: [
h(ConfirmCustomizeGasModal),
Expand Down
Loading

0 comments on commit 638149d

Please sign in to comment.