cleanup console.log

pull/5370/head
Joseph Izang 8 months ago committed by Aniket
parent 27e6002b93
commit 3a0b917512
  1. 7
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -150,7 +150,6 @@ export function Workspace() {
} }
const showFullMessage = (title: string, loadItem: string, examples: Array<string>, prefix = '') => { const showFullMessage = (title: string, loadItem: string, examples: Array<string>, prefix = '') => {
console.log('showFullMessage')
setModalState((prevState) => { setModalState((prevState) => {
return { return {
...prevState, ...prevState,
@ -179,16 +178,11 @@ export function Workspace() {
)) ))
const processLoading = (type: string) => { const processLoading = (type: string) => {
console.log('type', type)
_paq.push(['trackEvent', 'hometab', 'filesSection', 'importFrom' + type]) _paq.push(['trackEvent', 'hometab', 'filesSection', 'importFrom' + type])
const contentImport = global.plugin.contentImport const contentImport = global.plugin.contentImport
const workspace = global.plugin.fileManager.getProvider('workspace') const workspace = global.plugin.fileManager.getProvider('workspace')
const startsWith = modalState.importSource.substring(0, 4) const startsWith = modalState.importSource.substring(0, 4)
const d = { type } as any
d.importSource = modalState.importSource
console.log('type and importSource', d)
if ((type === 'ipfs' || type === 'IPFS') && startsWith !== 'ipfs' && startsWith !== 'IPFS') { if ((type === 'ipfs' || type === 'IPFS') && startsWith !== 'ipfs' && startsWith !== 'IPFS') {
console.log('type and importSource', d)
setState((prevState) => { setState((prevState) => {
return { ...prevState, importSource: startsWith + modalState.importSource } return { ...prevState, importSource: startsWith + modalState.importSource }
}) })
@ -222,7 +216,6 @@ export function Workspace() {
* @returns void * @returns void
*/ */
const importFromUrl = (title: string, loadItem: string, examples: Array<string>, prefix = '') => { const importFromUrl = (title: string, loadItem: string, examples: Array<string>, prefix = '') => {
console.log('hi', { title, loadItem, examples, prefix })
showFullMessage(title, loadItem, examples, prefix) showFullMessage(title, loadItem, examples, prefix)
} }

Loading…
Cancel
Save