-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from COINiD/feature/sign-message
Feature/sign message
- Loading branch information
Showing
24 changed files
with
726 additions
and
26 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
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
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
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
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
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,39 @@ | ||
import ActionMenuRouter from './ActionMenuRouter'; | ||
|
||
class VerifyMessageActionMenu { | ||
constructor({ showActionSheetWithOptions, ...params }) { | ||
this.params = params; | ||
this.actionRouter = new ActionMenuRouter({ showFn: showActionSheetWithOptions }); | ||
} | ||
|
||
getRootMenu = () => { | ||
const { onParseClipboard } = this.params; | ||
return [ | ||
{ | ||
name: 'Parse clipboard data', | ||
callback: () => setTimeout(onParseClipboard, 100), | ||
}, | ||
{ | ||
name: 'Cancel', | ||
isCancel: true, | ||
}, | ||
]; | ||
}; | ||
|
||
getActionRoutes = () => { | ||
const actionRoutes = { | ||
root: { | ||
menu: this.getRootMenu(), | ||
}, | ||
}; | ||
|
||
return actionRoutes; | ||
}; | ||
|
||
show = () => { | ||
this.actionRouter.setRoutes(this.getActionRoutes()); | ||
this.actionRouter.goTo('root'); | ||
}; | ||
} | ||
|
||
export default VerifyMessageActionMenu; |
Oops, something went wrong.