-
Notifications
You must be signed in to change notification settings - Fork 6
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 #168 from us3r-network/dashboard-dev
Dashboard dev
- Loading branch information
Showing
41 changed files
with
1,204 additions
and
736 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,47 @@ | ||
import { useCallback, useState } from 'react' | ||
import CopyIcon from './Icons/CopyIcon' | ||
import styled from 'styled-components' | ||
|
||
export default function CopyTint({ data }: { data: string }) { | ||
const [showCopyTint, setShowCopyTint] = useState(false) | ||
const copyId = useCallback(async (appId: string) => { | ||
try { | ||
await navigator.clipboard.writeText(appId) | ||
setShowCopyTint(true) | ||
setTimeout(() => { | ||
setShowCopyTint(false) | ||
}, 2000) | ||
} catch (error) { | ||
console.error(error) | ||
} | ||
}, []) | ||
return ( | ||
<CopyBox> | ||
<button | ||
onClick={() => { | ||
copyId(data) | ||
}} | ||
> | ||
<CopyIcon /> | ||
</button> | ||
{showCopyTint && <span>Copied</span>} | ||
</CopyBox> | ||
) | ||
} | ||
|
||
const CopyBox = styled.div` | ||
position: relative; | ||
> span { | ||
position: absolute; | ||
font-size: 13px; | ||
color: inherit; | ||
left: 0; | ||
bottom: -12px; | ||
/* transform: translate(-50%, 50%); */ | ||
} | ||
> button { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
` |
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
REACT_APP_NAME=userscan-client | ||
REACT_APP_NAME=US3R SCAN | ||
REACT_APP_VERSION=$npm_package_version | ||
|
||
REACT_APP_API_BASE_URL = http://localhost:3002 | ||
REACT_APP_UPLOAD_API_URL=https://test-enchanft-backend.onrender.com | ||
REACT_APP_API_BASE_URL = https://api-dev.s3.xyz | ||
REACT_APP_UPLOAD_API_URL=https://api-dev.u3.xyz | ||
|
||
REACT_APP_CERAMIC_MAINNET_HOST=https://ceramic-miannet.s3.xyz | ||
REACT_APP_CERAMIC_TESTNET_HOST=https://ceramic-testnet.s3.xyz | ||
REACT_APP_CERAMIC_MAINNET_HOST=https://gcp-ceramic-mainnet-dev.s3.xyz | ||
REACT_APP_CERAMIC_TESTNET_HOST=https://gcp-ceramic-testnet-dev.s3.xyz | ||
|
||
REACT_APP_WALLET_CONNECT_PROJECT_ID = c652d0148879353d7e965d7f6f361e59 |
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.