-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
029f2ae
commit fbf17f6
Showing
5 changed files
with
77 additions
and
16 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,42 @@ | ||
import React, { useState } from 'react'; | ||
import { | ||
DialogActions, | ||
Button, | ||
DialogTitle, | ||
DialogContent, | ||
TextField, | ||
} from '@material-ui/core'; | ||
import DialogForm from './DialogForm'; | ||
|
||
export default function TkeyShareInputDialog({ open, onAdd }) { | ||
const [importedShare, setImportedShare] = useState(''); | ||
|
||
return ( | ||
<DialogForm open={open} onSubmit={() => onAdd(importedShare)} fullWidth> | ||
<DialogTitle>Enter Share Mnemonic</DialogTitle> | ||
<DialogContent style={{ paddingTop: 16 }}> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
}} | ||
> | ||
<TextField | ||
label="Paste your share mnemonic" | ||
fullWidth | ||
type="password" | ||
value={importedShare} | ||
variant="outlined" | ||
margin="normal" | ||
onChange={(e) => setImportedShare(e.target.value.trim())} | ||
/> | ||
</div> | ||
</DialogContent> | ||
<DialogActions> | ||
<Button type="submit" color="primary"> | ||
Add | ||
</Button> | ||
</DialogActions> | ||
</DialogForm> | ||
); | ||
} |
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