* Refactor Modal folder and setup basic addassetsmodal * basic tables * Update basic logic * small fixes * Update closing for modals * fix slider update bug and set borrowing subtitle * fix store * add missing dependency * fix tests for VaultBorrowings * Add DisplayCurrency test for VaultBorrowings * trigger updated * update borrowModal import path * update imports for modals * updating paths again * update structure of modals directory * fix all file naming and relative imports * fix icon spacing button and jest.mocked import * fix icon classes for button * change Map to array and add BNCoin * add AssetImage * update logic for selecting borrow denoms
20 lines
345 B
TypeScript
20 lines
345 B
TypeScript
import Image from 'next/image'
|
|
|
|
interface Props {
|
|
asset: Asset
|
|
size: number
|
|
className?: string
|
|
}
|
|
|
|
export default function AssetImage(props: Props) {
|
|
return (
|
|
<Image
|
|
src={props.asset.logo}
|
|
alt={`${props.asset.symbol} logo`}
|
|
width={props.size}
|
|
height={props.size}
|
|
className={props.className}
|
|
/>
|
|
)
|
|
}
|