removed unused code

This commit is contained in:
Frank Noirot
2021-02-25 21:26:25 -05:00
parent fa3141266e
commit 7fab53d200
4 changed files with 2 additions and 9 deletions

View File

@@ -3,7 +3,6 @@ import CascadeController from 'src/helpers/cascadeController'
import IdeToolbar from 'src/components/IdeToolbar'
import { useEffect, useState } from 'react'
import { threejsViewport } from 'src/cascade/js/MainPage/CascadeState'
import { element } from 'prop-types'
import { uploadToCloudinary } from 'src/helpers/cloudinary'
const defaultExampleCode = `// Welcome to Cascade Studio! Here are some useful functions:
@@ -82,10 +81,6 @@ const IdeCascadeStudio = ({ part, saveCode, loading }) => {
// Save the screenshot as the mainImage
saveCode({
input: {
code,
title: part?.title,
userId: currentUser?.sub,
description: part?.description,
mainImage: cloudinaryImg.public_id,
},
id: part?.id,

View File

@@ -114,6 +114,7 @@ const IdeToolbar = ({
aTag.style.display = 'none'
aTag.download = `CadHub_${ Date.now() }.jpg`
aTag.click()
document.body.removeChild(aTag)
}
const anchorOrigin = {