mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
chore: use Chakra Image
This commit is contained in:
parent
dc6680f12f
commit
b5e8e6365f
1 changed files with 3 additions and 12 deletions
|
|
@ -2,6 +2,7 @@ import {
|
||||||
Box,
|
Box,
|
||||||
Flex,
|
Flex,
|
||||||
Heading,
|
Heading,
|
||||||
|
Image,
|
||||||
Link,
|
Link,
|
||||||
ListItem,
|
ListItem,
|
||||||
OrderedList,
|
OrderedList,
|
||||||
|
|
@ -11,7 +12,6 @@ import {
|
||||||
UnorderedList
|
UnorderedList
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import NextLink from 'next/link';
|
import NextLink from 'next/link';
|
||||||
import Image from 'next/image';
|
|
||||||
|
|
||||||
import { Code, Note } from '.';
|
import { Code, Note } from '.';
|
||||||
import { textStyles } from '../../../theme/foundations';
|
import { textStyles } from '../../../theme/foundations';
|
||||||
|
|
@ -30,17 +30,8 @@ const MDComponents = {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link href={src} isExternal>
|
<Link href={src} isExternal>
|
||||||
<Box position='relative' mb={7}>
|
<Box mb={7}>
|
||||||
<Image
|
<Image alt={alt} src={src} />
|
||||||
alt={alt}
|
|
||||||
src={src}
|
|
||||||
width={700}
|
|
||||||
height={475}
|
|
||||||
style={{
|
|
||||||
width: '100%',
|
|
||||||
height: 'auto'
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Box>
|
</Box>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue