Skip to content

Commit

Permalink
actually fixed the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince527GitHub committed Feb 26, 2024
1 parent 5a3e991 commit 423a43b
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 107 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ npm-*

# for act
.secrets

# devbox
devbox.lock
.devbox
13 changes: 13 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"packages": ["nodejs@latest"],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
}
171 changes: 72 additions & 99 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions src/components/menu-bar/menu-bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -494,16 +494,12 @@ class MenuBar extends React.Component {
</MenuSection>
)}
<MenuSection>
<MenuItem
onClick={this.props.onStartSelectingFileUpload}
>
<MenuItem onClick={() => this.props.onStartSelectingFileUpload(false)}>
{this.props.intl.formatMessage(sharedMessages.loadFromServer)}
</MenuItem>
{/* <MenuItem
onClick={this.props.onStartSelectingFileUpload(true)}
>
<MenuItem onClick={() => this.props.onStartSelectingFileUpload(true)}>
{this.props.intl.formatMessage(sharedMessages.loadFromComputerTitle)}
</MenuItem> */}
</MenuItem>
<SB3Downloader>{(className, downloadProjectCallback) => (
<MenuItem
className={className}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sb-file-uploader-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const SBFileUploaderHOC = function (WrappedComponent) {
}
// step 1: this is where the upload process begins
handleStartSelectingFileUpload (type) {
console.log("SELECT FILE UPLOAD!")
console.log("SELECT FILE UPLOAD!", type)
if (type) this.createLocalFileObjects();
else this.createFileObjects(); // go to step 2
// this.createFileObjects();
Expand Down

0 comments on commit 423a43b

Please sign in to comment.