Map Modal: Fix opening (#4572)
This commit is contained in:
parent
af6f29ffc9
commit
d64ed45af8
@ -12,6 +12,7 @@ import ChatlistModal from './chatlist/ChatlistModal.async';
|
||||
import CollectibleInfoModal from './collectible/CollectibleInfoModal.async';
|
||||
import GiftCodeModal from './giftcode/GiftCodeModal.async';
|
||||
import InviteViaLinkModal from './inviteViaLink/InviteViaLinkModal.async';
|
||||
import MapModal from './map/MapModal.async';
|
||||
import OneTimeMediaModal from './oneTimeMedia/OneTimeMediaModal.async';
|
||||
import ReportAdModal from './reportAd/ReportAdModal.async';
|
||||
import UrlAuthModal from './urlAuth/UrlAuthModal.async';
|
||||
@ -23,6 +24,7 @@ type ModalKey = keyof Pick<TabState,
|
||||
'boostModal' |
|
||||
'chatlistModal' |
|
||||
'urlAuth' |
|
||||
'mapModal' |
|
||||
'oneTimeMediaModal' |
|
||||
'inviteViaLinkModal' |
|
||||
'requestedAttachBotInstall' |
|
||||
@ -54,6 +56,7 @@ const MODALS: ModalRegistry = {
|
||||
reportAdModal: ReportAdModal,
|
||||
webApp: WebAppModal,
|
||||
collectibleInfoModal: CollectibleInfoModal,
|
||||
mapModal: MapModal,
|
||||
};
|
||||
const MODAL_KEYS = Object.keys(MODALS) as ModalKey[];
|
||||
const MODAL_ENTRIES = Object.entries(MODALS) as Entries<ModalRegistry>;
|
||||
|
||||
@ -86,7 +86,7 @@ const OpenMapModal = ({ modal }: OwnProps) => {
|
||||
Bing Maps
|
||||
</Button>
|
||||
<Button fluid size="smaller" onClick={handleOsmClick}>
|
||||
Open Street Maps
|
||||
OpenStreetMap
|
||||
</Button>
|
||||
</div>
|
||||
<div className="dialog-buttons mt-2">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user