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.

Commit c437066

Browse files
authored
Fix type and API issues (#4116)
* chore: fix type issues * chore: add todo for api
1 parent 5205fcb commit c437066

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

src/components/elements/common-header-section.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import React from 'react'
22
import { TString } from 'types/generics'
3-
import { Localize } from 'components/localization'
43
import { Flex } from 'components/containers'
54

65
type CommonHeaderSectionProps = {
7-
title?: TString
6+
title?: any
87
subtitle?: TString
98
padding?: string
109
bgcolor?: string
@@ -62,7 +61,7 @@ const CommonHeaderSection = ({
6261
lineHeight: line_height,
6362
}}
6463
>
65-
<Localize translate_text={title} />
64+
{title}
6665
</h1>
6766
<p
6867
style={{
@@ -75,7 +74,7 @@ const CommonHeaderSection = ({
7574
lineHeight: line_height,
7675
}}
7776
>
78-
<Localize translate_text={subtitle} />
77+
{subtitle}
7978
</p>
8079
</Flex>
8180
</div>

src/components/elements/full-width-multicolumn.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React, { ReactElement } from 'react'
22
import styled from 'styled-components'
3+
import CommonHeaderSection from './common-header-section'
34
import { SectionContainer, Flex, Box } from 'components/containers'
45
import { Header, Text } from 'components/elements'
56
import device from 'themes/device'
7+
import { localize } from 'components/localization'
68

79
type FullWidthMultiColumnProps = {
810
children?: ReactElement[]

src/components/elements/stepper-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactNode } from 'react'
1+
import React from 'react'
22
import styled, { css } from 'styled-components'
33
import { useIsRtl } from 'components/hooks/use-isrtl'
44
import CommonHeaderSection from 'components/elements/common-header-section'

src/pages/home/live-pricing/components/_live_market_table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ const LiveMarketTable = ({ market }: TLiveMarketTableProps) => {
3636

3737
const requestMarketsData = useCallback(() => {
3838
setIsLoading(true)
39-
39+
// Todo: Fro region: 'row' should be dynamic. Delete this todo once fixed
4040
send(
41-
{ trading_platform_asset_listing: 1, platform: 'mt5', type: 'brief' },
41+
{ trading_platform_asset_listing: 1, platform: 'mt5', type: 'brief', region: 'row' },
4242
(response: TMarketDataResponse) => {
4343
const responseData = [...response.trading_platform_asset_listing.mt5.assets]
4444
const markets = new Map<TAvailableLiveMarkets, TMarketData[]>()

0 commit comments

Comments
 (0)