This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
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 kinecosystem/version_2
Version 2
- Loading branch information
Showing
44 changed files
with
6,361 additions
and
5,744 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 @@ | ||
import React from 'react'; | ||
import { message } from 'antd'; | ||
import copy from 'copy-to-clipboard'; | ||
import { FloatingMessage } from '../antd'; | ||
|
||
function handleCopy(address) { | ||
copy(address); | ||
message.open({ | ||
content: <FloatingMessage icon={'copy'}>Wallet’s public address was copied to your clipboard.</FloatingMessage> | ||
}); | ||
} | ||
|
||
export default handleCopy; |
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,7 @@ | ||
import * as Kin from 'kin-wallet'; | ||
|
||
async function showAddress(derviationPath) { | ||
await Kin.Ledger.getPublicKey(derviationPath, true, true); | ||
} | ||
|
||
export default showAddress; |
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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
import React from 'react'; | ||
import { Footer, Support, FooterItem } from './style'; | ||
import { Link, navigate } from 'gatsby'; | ||
import { A } from 'common/selectors'; | ||
|
||
const hidePrivacyAt = ['/transaction', '/transaction-approved','/review-payment','/approve-payment']; | ||
const hidecostumerSupAt = ['/transaction-approved']; | ||
|
||
const FooterComponent = ({ hide, path, store, resetAll }) => ( | ||
<Footer hide={hide}> | ||
{store.blockchain.publicKey && ( | ||
<div className="logOut" onClick={() => { | ||
resetAll() | ||
navigate('/') | ||
}}> | ||
Sign out | ||
</div> | ||
)} | ||
<Support> | ||
<FooterItem className="cSupp"> | ||
<a href="mailto:[email protected]" target="_top"> | ||
<A>Customer Support</A> | ||
</a> | ||
</FooterItem> | ||
<FooterItem hide={hidePrivacyAt.includes(path)}> | ||
<Link to="/privacy-policy" state={{ lastPage: path }}> | ||
<A>Privacy policy</A> | ||
</Link> | ||
</FooterItem> | ||
</Support> | ||
</Footer> | ||
); | ||
|
||
export default FooterComponent; |
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.