Skip to content

Commit

Permalink
update: color for light theme token security info (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh authored Aug 11, 2023
1 parent 77f8cc1 commit 1814b7c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/swapv2/TokenInfo/SecurityInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ import { ReactComponent as TreadingSecurity } from 'assets/svg/security_trading.
import { CollapseItem } from 'components/Collapse'
import { getSecurityTokenInfo } from 'components/swapv2/TokenInfo/utils'
import useTheme from 'hooks/useTheme'
import { useIsDarkMode } from 'state/user/hooks'

import { Container } from '../index'
import Content from './Content'
import Header from './Header'

export default function SecurityInfo({ token }: { token: Token | undefined }) {
const theme = useTheme()
const style: CSSProperties = { background: rgba(theme.black, 0.2), borderRadius: '16px', padding: '0' }
const headerStyle: CSSProperties = { background: rgba(theme.black, 0.48) }
const isDarkMode = useIsDarkMode()
const style: CSSProperties = {
background: isDarkMode ? rgba(theme.black, 0.2) : rgba(theme.subText, 0.04),
borderRadius: '16px',
padding: '0',
}
const headerStyle: CSSProperties = { background: isDarkMode ? rgba(theme.black, 0.48) : rgba(theme.subText, 0.08) }
const arrowStyle: CSSProperties = { marginRight: '6px', color: theme.subText }
const { data, isLoading } = useGetSecurityTokenInfoQuery(
{ chainId: token?.chainId as ChainId, address: token?.address ?? '' },
Expand Down

0 comments on commit 1814b7c

Please sign in to comment.