1
1
import { useState , useMemo , useCallback , FC , SyntheticEvent } from 'react'
2
- import { Collection , TP_COLLECTION_NAME_MAX_LENGTH } from 'modules/collection/types '
2
+ import { ContractNetwork } from '@dcl/schemas '
3
3
import {
4
4
ModalNavigation ,
5
5
Button ,
@@ -16,20 +16,12 @@ import uuid from 'uuid'
16
16
import { t } from 'decentraland-dapps/dist/modules/translation/utils'
17
17
import Modal from 'decentraland-dapps/dist/containers/Modal'
18
18
import { getAnalytics } from 'decentraland-dapps/dist/modules/analytics'
19
+ import { Collection , TP_COLLECTION_NAME_MAX_LENGTH } from 'modules/collection/types'
19
20
import { buildThirdPartyURN , decodeURN , getDefaultThirdPartyUrnSuffix } from 'lib/urn'
20
21
import { shorten } from 'lib/address'
21
- import ethereumSvg from '../../../icons/ethereum.svg'
22
- import polygonSvg from '../../../icons/polygon.svg'
22
+ import { imgSrcByNetwork } from 'components/NetworkIcon'
23
23
import { Props } from './CreateThirdPartyCollectionModal.types'
24
24
import styles from './CreateThirdPartyCollectionModal.module.css'
25
- import { ContractNetwork } from '@dcl/schemas'
26
-
27
- const imgSrcByNetwork = {
28
- [ ContractNetwork . MAINNET ] : ethereumSvg ,
29
- [ ContractNetwork . MATIC ] : polygonSvg ,
30
- [ ContractNetwork . SEPOLIA ] : ethereumSvg ,
31
- [ ContractNetwork . AMOY ] : polygonSvg
32
- }
33
25
34
26
export const CreateThirdPartyCollectionModal : FC < Props > = ( props : Props ) => {
35
27
const {
0 commit comments