fix: image
This commit is contained in:
parent
dfa7b4f175
commit
228880b977
1 changed files with 2 additions and 3 deletions
|
|
@ -7,8 +7,7 @@ import { Section } from '@/components/Section/Section'
|
||||||
import styles from '@/components/DonationForm/styles.module.scss'
|
import styles from '@/components/DonationForm/styles.module.scss'
|
||||||
import { Row } from '@/components/Flex/Row'
|
import { Row } from '@/components/Flex/Row'
|
||||||
import { Col } from '@/components/Flex/Col'
|
import { Col } from '@/components/Flex/Col'
|
||||||
import { Image } from '@/components/Image/Image'
|
import Image from 'next/image'
|
||||||
import { getPhoto } from '@/utils/dto/gallery'
|
|
||||||
|
|
||||||
export default async function DonationPage({ params }: { params: Promise<{id: string}>}) {
|
export default async function DonationPage({ params }: { params: Promise<{id: string}>}) {
|
||||||
const id = (await params).id;
|
const id = (await params).id;
|
||||||
|
|
@ -32,7 +31,7 @@ export default async function DonationPage({ params }: { params: Promise<{id: st
|
||||||
<Row alignItems={"center"}>
|
<Row alignItems={"center"}>
|
||||||
<Col>
|
<Col>
|
||||||
{ typeof image == "object" && image.url &&
|
{ typeof image == "object" && image.url &&
|
||||||
<Image src={image.url} width={300} height={300} alt=""/>
|
<Image src={image.url} width={300} height={300} alt="" unoptimized={true}/>
|
||||||
}
|
}
|
||||||
</Col>
|
</Col>
|
||||||
<Col>
|
<Col>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue