Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Jun 9, 2023
1 parent 4ea5b60 commit cef25d7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/components/LiveChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,20 +323,20 @@ function LiveChart({
</Flex>
</Flex>

{/* Stop tradingview from rerender on isShowProChart change */}
<div style={{ display: isShowProChart && !!poolAddress ? 'block' : 'none', height: '100%' }}>
{commonPool && <TradingViewChart poolDetail={commonPool} isReverse={isReverse} label={label} />}
<Flex justifyContent="flex-end" sx={{ gap: '0.5rem', marginTop: '6px' }}>
<Text color={theme.subText} fontSize="10px">
Powered by
</Text>
{isDarkMode ? (
<GeckoTerminalSVG style={{ width: '75px' }} />
) : (
<GeckoTerminalLightSVG style={{ width: '75px' }} />
)}
</Flex>
</div>
{/* Stop tradingview from rerender on isShowProChart change */}
<div style={{ display: isShowProChart && !!poolAddress ? 'block' : 'none', height: '100%' }}>
{commonPool && <TradingViewChart poolDetail={commonPool} isReverse={isReverse} label={label} />}
<Flex justifyContent="flex-end" sx={{ gap: '0.5rem', marginTop: '6px' }}>
<Text color={theme.subText} fontSize="10px">
Powered by
</Text>
{isDarkMode ? (
<GeckoTerminalSVG style={{ width: '75px' }} />
) : (
<GeckoTerminalLightSVG style={{ width: '75px' }} />
)}
</Flex>
</div>

{!isShowProChart && (
<>
Expand Down

0 comments on commit cef25d7

Please sign in to comment.