Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Ako/ Fix img attributes size bug #2514

Merged
4 commits merged into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/layout/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ const NavMobile = ({

<LogoLinkMobileMain to="/" aria-label={localize('Home')}>
<Flex>
<img src={LogoOnly} alt="logo only" width="115px" />
<img src={LogoOnly} alt="logo only" width={115} />
<LogoDescription ai="center">
<Line />
{academy_logo ? (
Expand Down Expand Up @@ -792,13 +792,13 @@ export const NavStatic = ({ is_ppc }) => (
<StaticWrapper>
<LogoLink mw="31rem" to="/" aria-label={localize('Home')}>
<Flex ai="center">
<img src={LogoOnly} alt="logo only nav static" width="160px" height="27px" />
<img src={LogoOnly} alt="logo only nav static" width={160} height={27} />
<Line />
<img
src={LogoCombinedShape}
alt="logo combined shape nav static"
width="120"
height="17"
width={120}
height={17}
/>
</Flex>
</LogoLink>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/landing/deriv-go/_why-trade-deriv-go.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const WhyTradeDerivGo = () => {
return (
<Card key={index.title}>
<div>
<img src={index.icon} width="72px" height="72px" alt="" />
<img src={index.icon} width={72} height={72} alt="" />
</div>
<Header as="h3" type="heading-3" align="center" mt="24px">
{index.title}
Expand Down
6 changes: 3 additions & 3 deletions src/pages/landing/trade-forex/components/_icon-text-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const IconTextRow = () => {
<CardContainer pr="4.7rem" pl="6.7rem">
<Card direction="column">
<Row>
<img src={RightAd} alt="high leverage" width="98px" />
<img src={RightAd} alt="high leverage" width={98} />
</Row>
<Row>
<Column>
Expand Down Expand Up @@ -139,7 +139,7 @@ const IconTextRow = () => {
</Card>
<Card direction="column">
<Row>
<img src={SettlePayment} alt="zero commission" width="80px" />
<img src={SettlePayment} alt="zero commission" width={80} />
</Row>
<Row>
<Column>
Expand Down Expand Up @@ -169,7 +169,7 @@ const IconTextRow = () => {
</Card>
<Card direction="column">
<Row>
<img src={CompleteOrder} alt="swap free" width="109px" />
<img src={CompleteOrder} alt="swap free" width={109} />
</Row>
<Row>
<Column>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/markets/components/helper/_markets_accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ const MarketsAccordion = ({ renderTitle, renderDetails, custom_index }) => {
<StyledChevron
src={ChevronThick}
alt=""
width="16px"
height="16px"
width={16}
height={16}
is_show_detail={String(is_show_detail)}
/>
</Button>
Expand Down