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: internal link warning on console #2116

Merged
1 commit merged into from Sep 21, 2021
Merged
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
13 changes: 8 additions & 5 deletions src/pages/academy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Hero from './components/_hero'
import MarketNews from './components/_markets-news'
import Layout from 'components/layout/layout'
import { Container, SEO, Flex } from 'components/containers'
import { localize, WithIntl, LocalizedLink } from 'components/localization'
import { localize, WithIntl } from 'components/localization'
import { Carousel, QueryImage } from 'components/elements'
import { DerivStore } from 'store'

Expand All @@ -18,6 +18,10 @@ const MainWrapper = styled(Flex)`
flex-direction: column;
overflow: hidden;
`
const StyledLink = styled.a`
text-decoration: none;
`

export const query = graphql`
query HomepageQuery {
directus {
Expand Down Expand Up @@ -352,10 +356,9 @@ const DerivBlog = ({ data }) => {
<Carousel has_autoplay autoplay_interval={6000} {...settings}>
{homepage_banner_data.map((page_data) => {
return (
<LocalizedLink
<StyledLink
key={page_data.id}
to={page_data.link}
style={{ textDecoration: 'none' }}
href={page_data.link}
rel="noopener noreferrer"
target="_blank"
>
Expand All @@ -369,7 +372,7 @@ const DerivBlog = ({ data }) => {
title={page_data.heading}
description={page_data.sub_heading}
/>
</LocalizedLink>
</StyledLink>
)
})}
</Carousel>
Expand Down