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.

fix: preact missing images #2556

Merged
5 commits merged into from Jan 24, 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
6 changes: 3 additions & 3 deletions src/pages/academy/common/_constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type TopicType = {
// academy topic
export const market_type: TopicType[] = [
{
type: 'Market',
type: 'Markets',
items: [
{
title: 'Forex',
Expand All @@ -33,7 +33,7 @@ export const market_type: TopicType[] = [

export const platforms: TopicType[] = [
{
type: 'Platform',
type: 'Platforms',
items: [
{
title: 'Deriv MT5',
Expand All @@ -48,7 +48,7 @@ export const platforms: TopicType[] = [
title: 'DBot',
},
{
title: 'Deriv Go',
title: 'Deriv GO',
},
],
},
Expand Down
8 changes: 4 additions & 4 deletions src/pages/academy/components/_social-sharing.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,31 @@ const SocialSharing = () => {
target="_blank"
rel="noopener noreferrer"
>
<img src={FacebookIcon} width="24px" height="24px" />
<img src={FacebookIcon} width={24} height={24} />
</LocalizedLink>
<LocalizedLink
external
to={`http://www.linkedin.com/shareArticle?mini=true&url=${url}`}
target="_blank"
rel="noopener noreferrer"
>
<img src={LinkedInIcon} width="24px" height="24px" />
<img src={LinkedInIcon} width={24} height={24} />
</LocalizedLink>
<LocalizedLink
external
to={`https://www.twitter.com/share?url=${url}`}
target="_blank"
rel="noopener noreferrer"
>
<img src={TwitterIcon} width="24px" height="24px" />
<img src={TwitterIcon} width={24} height={24} />
</LocalizedLink>
<LocalizedLink
external
to={`https://pinterest.com/pin/create/button/?url=${url}&media=&description=`}
target="_blank"
rel="noopener noreferrer"
>
<img src={PinterestIcon} width="24px" height="24px" />
<img src={PinterestIcon} width={24} height={24} />
</LocalizedLink>
</Flex>
</IconWrapper>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/academy/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ const SearchPage = () => {
return 'DTrader'
case 'deriv-mt5':
return 'Deriv MT5'
case 'deriv-go':
return 'Deriv GO'
default:
return unslugify(category_type)
}
Expand Down
13 changes: 6 additions & 7 deletions src/pages/careers/_employee-testimonial-carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,19 @@ const QuoteWrapper = styled(Flex)`
top: 16px;
}
`
const StyledImg = styled.img`
width: 100%;
height: 100%;
`

const EmployeeSlide = ({ quote, img_path, img_alt, name }) => {
return (
<Flex ai="center" height="unset">
<EmployeeCard>
<Flex tablet_direction="column">
<Flex>
<ImageWrapper>
<img
loading="lazy"
width="100%"
height="100%"
src={img_path}
alt={img_alt}
/>
<StyledImg loading="lazy" src={img_path} alt={img_alt} />
</ImageWrapper>
</Flex>
<QuoteWrapper direction="column">
Expand Down