forked from multiversx/mx-lite-wallet-dapp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tokens, NFTs, and transactions (multiversx#3)
* Added Tokens and NFTs to Dashboard.tsx
- Loading branch information
1 parent
a95a230
commit 8e57b1a
Showing
135 changed files
with
1,829 additions
and
3,852 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 was deleted.
Oops, something went wrong.
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,30 @@ | ||
import { useState } from 'react'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faCheck, faCopy } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
export const Copy = ({ | ||
value, | ||
className = '' | ||
}: { | ||
value: string; | ||
className?: string; | ||
}) => { | ||
const [confirm, setConfirm] = useState(false); | ||
|
||
const copy = () => { | ||
navigator.clipboard.writeText(value); | ||
setConfirm(true); | ||
setTimeout(() => setConfirm(false), 2000); | ||
}; | ||
|
||
return ( | ||
<span | ||
className={`ml-0.5 inline-block cursor-pointer px-1 hover:text-white ${className} ${ | ||
confirm ? 'text-white' : 'text-gray-400' | ||
}`} | ||
onClick={copy} | ||
> | ||
<FontAwesomeIcon icon={confirm ? faCheck : faCopy} /> | ||
</span> | ||
); | ||
}; |
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 @@ | ||
export * from './Copy'; |
File renamed without changes.
File renamed without changes.
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
34 changes: 0 additions & 34 deletions
34
src/components/OutputContainer/components/PingPongOutput.tsx
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
src/components/OutputContainer/components/TransactionOutput.tsx
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/components/OutputContainer/components/TransactionsOutput.tsx
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './OutputContainer'; | ||
export * from './components'; |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export * from './Layout'; | ||
export * from './sdkDappComponents'; | ||
export * from './Button'; | ||
export * from './Card'; | ||
export * from './Copy'; | ||
export * from './Label'; | ||
export * from './Layout'; | ||
export * from './MissingNativeAuthError'; | ||
export * from './MxLink'; | ||
export * from './Button'; | ||
export * from './OutputContainer'; | ||
export * from './TransactionsTracker'; | ||
export * from './ContractAddress'; | ||
export * from './MissingNativeAuthError'; | ||
export * from './Label'; | ||
export * from './sdkDapp.components'; |
Oops, something went wrong.