Skip to content

Commit

Permalink
Edit default NFT image
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianBouron committed Aug 14, 2023
1 parent dc53022 commit f4997ac
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
17 changes: 14 additions & 3 deletions packages/extension/src/components/atoms/NFTImage/NFTImage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC } from 'react';
import { FC } from 'react';

import { CircularProgress } from '@mui/material';
import { LazyLoadImage } from 'react-lazy-load-image-component';
Expand All @@ -25,8 +25,19 @@ export const NFTImage: FC<NFTImageProps> = ({ imageURL, height = 250, width = 25
/>
</div>
) : (
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
<GemWallet />
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
height,
width,
backgroundColor: '#1e1e1e',
borderRadius: '4px',
boxShadow: '4px 4px 0px black'
}}
>
<GemWallet style={{ transform: 'scale(2)' }} />
</div>
);
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC } from 'react';
import { FC, SVGProps } from 'react';

export const GemWallet: FC = (props) => (
export const GemWallet: FC<SVGProps<SVGSVGElement>> = (props) => (
<svg width={45} height={45} xmlns="http://www.w3.org/2000/svg" {...props} data-testid="gem-icon">
<circle cx="22.492" cy="22.51" r="22.363" fill="#1e1e1e" stroke="null" />
<g fill="none" stroke="null">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC } from 'react';
import { FC } from 'react';

import CloseIcon from '@mui/icons-material/Close';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC, useMemo } from 'react';
import { FC, useMemo } from 'react';

import ErrorIcon from '@mui/icons-material/Error';
import { Button, Container, IconButton, Paper, Tooltip, Typography } from '@mui/material';
Expand Down

0 comments on commit f4997ac

Please sign in to comment.