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.

Nikolai.berestevich signal provider highlight 28666 #1866

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
16 changes: 10 additions & 6 deletions src/pages/dmt5-trading-signals/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import React, { useEffect, useState } from 'react'
import styled from 'styled-components'
import { Hero, SmallContainer } from './_style'
import HowTo from './_how-to'
Expand Down Expand Up @@ -102,7 +102,11 @@ const Separator = styled.div`

const DMT5TradingSignals = () => {
const [active_tab, setActiveTab] = useTabState(['signal-subscriber', 'signal-provider'])

const [is_mounted, setMounted] = useState(false) //needs to fix bug with hightlight of the 1st loading
useEffect(() => {
setMounted(true)
}, [])

return (
<Layout>
<SEO description={localize('Subscribe to Deriv MetaTrader 5 trading signals to copy the trades of experienced traders, or become a signal provider and share your strategies.')} title={localize('Deriv MetaTrader 5 trading signals | Resources | Deriv')} />
Expand All @@ -114,20 +118,20 @@ const DMT5TradingSignals = () => {
</SmallContainer>
</Hero>
<TabsContainer>
<Item
{is_mounted && <Item
onClick={() => setActiveTab('signal-subscriber')}
active_tab={active_tab}
name="signal-subscriber"
>
<Header as="h4">{localize('Signal subscriber')}</Header>
</Item>
<Item
</Item>}
{is_mounted && <Item
onClick={() => setActiveTab('signal-provider')}
active_tab={active_tab}
name="signal-provider"
>
<Header as="h4">{localize('Signal provider')}</Header>
</Item>
</Item>}
</TabsContainer>
<Box position="relative">
<Separator />
Expand Down