-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Local settings menu * Move signer minimize out of local state * Update settings icon * Initial Signer Indicator (#9) * Update indicator, add signer settings menu * Add local node settings * Dapp permission requests * Add ability to toggle permissions * Add functionality to test dapp (#14) Add functionality to test dapp * Toggle dapp permissions * Apply style to local settings * Hide permissions when unselected, hide window on blur
- Loading branch information
Showing
20 changed files
with
622 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react' | ||
import Restore from 'react-restore' | ||
|
||
class Settings extends React.Component { | ||
render () { | ||
return ( | ||
<div className='signerSettings'> | ||
<div className='signerSettingsTitle'>{'Local Settings'}</div> | ||
<div className='signerPermission' onClick={_ => this.store.runLocalNode()}> | ||
<div className='signerPermissionOrigin'>{'Run Local Node'}</div> | ||
<div className={this.store('local.node.run') ? 'signerPermissionToggle signerPermissionToggleOn' : 'signerPermissionToggle'}> | ||
<div className='signerPermissionToggleSwitch' /> | ||
</div> | ||
</div> | ||
<div className='signerPermission' onClick={_ => this.store.runOnStartup()}> | ||
<div className='signerPermissionOrigin'>{'Run on Startup'}</div> | ||
<div className={this.store('local.startup') ? 'signerPermissionToggle signerPermissionToggleOn' : 'signerPermissionToggle'}> | ||
<div className='signerPermissionToggleSwitch' /> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default Restore.connect(Settings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.settings { | ||
width 100% | ||
display flex | ||
justify-content center | ||
align-items center | ||
padding 0px 0px 20px 0px | ||
flex-direction column | ||
} | ||
|
||
.settingsTitle { | ||
width 100% | ||
display flex | ||
justify-content center | ||
align-items center | ||
padding 20px 0px 20px 0px | ||
background rgba(255, 255, 255, 0.8) | ||
} | ||
|
||
.settingsItems { | ||
width 100% | ||
display flex | ||
justify-content center | ||
align-items center | ||
padding 20px 0px 20px 0px | ||
background rgba(0,0,50,0.1) | ||
flex-direction column | ||
} | ||
|
||
.settingsItem { | ||
width 100% | ||
display flex | ||
justify-content flex-start | ||
align-items center | ||
padding 20px | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.