Skip to content

Commit

Permalink
Merge branch 'add-pencil-icon' of https://github.com/AutarkLabs/arago…
Browse files Browse the repository at this point in the history
…n-home into add-pencil-icon
  • Loading branch information
Quazia committed Jun 6, 2019
2 parents 2aba6f2 + 3eb82c8 commit 8eb1cee
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
Main,
AppBar,
AppView,
Button,
// TODO: temporarily disabled edit-mode
// Button,
SidePanel,
EmptyStateCard,
IconHome,
Expand All @@ -20,7 +21,8 @@ import Widget from './components/content/Widget'
function App() {
const [panelVisible, setPanelVisible] = useState(false)
// TODO: useState(false) to start editMode disabled
const [editMode, setEditMode] = useState(true)
// const [editMode, setEditMode] = useState(true)
const [editMode] = useState(true)
const [selectedWidget, setSelectedWidget] = useState(0)

const { api, appState } = useAragonApi()
Expand Down Expand Up @@ -48,9 +50,10 @@ function App() {
return api.addWidget(_ipfsAddr)
}

const toggleEditMode = () => {
setEditMode(!editMode)
}
// TODO: temporarily disabled
// const toggleEditMode = () => {
// setEditMode(!editMode)
// }

const widgetList =
entries &&
Expand Down

0 comments on commit 8eb1cee

Please sign in to comment.