kawalcovid19/wargabantuwarga.com

Fix warnings in `Tentang Kami` page test

zainfathoni opened this issue · 3 comments

Description

Run this test

yarn test tentang-kami

And you'll see a lot of warnings due to the absence of width property in the next/image usages.

Screenshot 2021-08-14 at 09 44 21

Expected Behaviour

No warnings should be shown

Additional Information

Probably the simplest way of fixing this issue is by adding proper width props to the Image component.
What do you think, @resir014 & @ekafyi?

Probably the simplest way of fixing this issue is by adding proper width props to the Image component.
What do you think, @resir014 & @ekafyi?

Yes, Next's Image component is supposed to have a width prop, like in Home page banners.

Closed in #734.