Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prd 1525 #344

Open
wants to merge 1 commit into
base: prerelease/1.1.0+
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions cysync/src/pages/mainApp/sidebar/wallet/NearOneCoin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { generateNearAddressFromXpub } from '@cypherock/wallet';
import AddCircleIcon from '@mui/icons-material/AddCircle';
import ExpandLess from '@mui/icons-material/ExpandLess';
import ExpandMore from '@mui/icons-material/ExpandMore';
import { Collapse } from '@mui/material';
import { Collapse, Tooltip } from '@mui/material';
import Button from '@mui/material/Button';
import Grid from '@mui/material/Grid';
import { styled, Theme, useTheme } from '@mui/material/styles';
Expand Down Expand Up @@ -565,20 +565,30 @@ const NearOneCoin: React.FC<NearOneCoinProps> = ({
[classes.loading]: isLoading
})}
>
<CoinCardBtn
onClick={handleAddAccountFormOpen}
fullWidth
startIcon={<AddCircleIcon />}
style={{
borderRadius: '0',
borderTop: '1px solid #222',
padding: '6px'
}}
disabled={isLoading || canAddAccounts}
disableRipple
>
ADD ACCOUNT
</CoinCardBtn>
<Tooltip title="Insufficient funds in Near account">
<span
style={{
display: 'inline-block',
height: '100%',
width: '100%'
}}
>
<CoinCardBtn
onClick={handleAddAccountFormOpen}
fullWidth
startIcon={<AddCircleIcon />}
style={{
borderRadius: '0',
borderTop: '1px solid #222',
padding: '6px'
}}
disabled={isLoading || canAddAccounts}
disableRipple
>
ADD ACCOUNT
</CoinCardBtn>
</span>
</Tooltip>
</Grid>
)}
</>
Expand Down