mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-02-11 17:55:49 +00:00
add link to qort.trade and a refetch button for qort balance
This commit is contained in:
parent
06e0ec2c99
commit
c2fcfaeaed
30
src/App.tsx
30
src/App.tsx
@ -779,7 +779,12 @@ function App() {
|
||||
</CopyToClipboard>
|
||||
<Spacer height="10px" />
|
||||
{qortBalanceLoading && <CircularProgress color="success" size={16} />}
|
||||
{(balance >= 0) && (
|
||||
{!qortBalanceLoading && (balance >= 0) && (
|
||||
<Box sx={{
|
||||
gap: '10px',
|
||||
display: 'flex',
|
||||
alignItems: 'center'
|
||||
}}>
|
||||
<TextP
|
||||
sx={{
|
||||
textAlign: "center",
|
||||
@ -790,6 +795,12 @@ function App() {
|
||||
>
|
||||
{balance?.toFixed(2)} QORT
|
||||
</TextP>
|
||||
<RefreshIcon onClick={getBalanceFunc} sx={{
|
||||
fontSize: '16px',
|
||||
color: 'white',
|
||||
cursor: 'pointer'
|
||||
}} />
|
||||
</Box>
|
||||
)}
|
||||
<Spacer height="55px" />
|
||||
<CustomButton
|
||||
@ -801,7 +812,22 @@ function App() {
|
||||
</CustomButton>
|
||||
</>
|
||||
)}
|
||||
|
||||
<TextP
|
||||
sx={{
|
||||
textAlign: "center",
|
||||
lineHeight: "24px",
|
||||
fontSize: "12px",
|
||||
fontWeight: 500,
|
||||
cursor: 'pointer',
|
||||
marginTop: '10px',
|
||||
textDecoration: 'underline'
|
||||
}}
|
||||
onClick={()=> {
|
||||
chrome.tabs.create({ url: 'https://www.qort.trade' });
|
||||
}}
|
||||
>
|
||||
Get QORT at qort.trade
|
||||
</TextP>
|
||||
</AuthenticatedContainerInnerLeft>
|
||||
<AuthenticatedContainerInnerRight>
|
||||
<Spacer height="20px" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user