mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove dead code
This commit is contained in:
parent
2835112dbf
commit
1f0de5588d
@ -320,37 +320,3 @@ App.prototype.toggleMetamaskActive = function(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onOffToggle(state){
|
|
||||||
var buttonSize = '50px';
|
|
||||||
var lockWidth = '20px';
|
|
||||||
return (
|
|
||||||
h('.app-toggle.flex-row.flex-center.lock' + (state.isUnlocked ? '.unlocked' : '.locked'), {
|
|
||||||
width: buttonSize,
|
|
||||||
height: buttonSize,
|
|
||||||
}, [
|
|
||||||
h('div', {
|
|
||||||
onClick: state.toggleMetamaskActive,
|
|
||||||
style: {
|
|
||||||
width: lockWidth,
|
|
||||||
height: '' + parseInt(lockWidth) * 1.5 + 'px',
|
|
||||||
position: 'relative',
|
|
||||||
}
|
|
||||||
}, [
|
|
||||||
h('img.lock-top', {
|
|
||||||
src: 'images/lock-top.png',
|
|
||||||
style: {
|
|
||||||
width: lockWidth,
|
|
||||||
position: 'absolute',
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
h('img', {
|
|
||||||
src: 'images/lock-base.png',
|
|
||||||
style: {
|
|
||||||
width: lockWidth,
|
|
||||||
position: 'absolute',
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
])
|
|
||||||
])
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user