Skip to content

Commit c3ee7cb

Browse files
committed
update text styles
1 parent 1e42957 commit c3ee7cb

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

apps/kyberswap-interface/src/pages/Earns/PoolExplorer/index.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useNavigate, useSearchParams } from 'react-router-dom'
55
import { useMedia } from 'react-use'
66
import { Flex, Text } from 'rebass'
77
import { usePoolsExplorerQuery } from 'services/zapEarn'
8+
import styled from 'styled-components'
89

910
import { ReactComponent as IconUserEarnPosition } from 'assets/svg/earn/ic_user_earn_position.svg'
1011
import { NotificationType } from 'components/Announcement/type'
@@ -42,6 +43,14 @@ export enum SortBy {
4243
const POLLING_INTERVAL = 5 * 60_000
4344
const DEBOUNCE_DELAY = 300
4445

46+
export const BaseWarningWrapper = styled.div`
47+
border-radius: 40px;
48+
padding: 6px 12px;
49+
background-color: ${({ theme }) => theme.background};
50+
width: fit-content;
51+
margin: 0 auto;
52+
`
53+
4554
const PoolExplorer = () => {
4655
const [search, setSearch] = useState('')
4756
const deboundedSearch = useDebounce(search, DEBOUNCE_DELAY)
@@ -186,10 +195,12 @@ const PoolExplorer = () => {
186195

187196
<Filter filters={filters} updateFilters={updateFilters} search={search} setSearch={setSearch} />
188197
{filters.chainId === ChainId.BASE && (
189-
<Text color={theme.primary} fontSize={12} fontStyle={'italic'}>
190-
Kyber Earn data on Base is being updated. This may take a moment and will be available again at 1:00 AM UTC on
191-
20 Nov 2025 — thank you for your patience.
192-
</Text>
198+
<BaseWarningWrapper>
199+
<Text color={theme.subText} fontSize={12} fontWeight={500} fontStyle={'italic'}>
200+
Kyber Earn data on Base is being updated. This may take a moment and will be available again at 1:00 AM UTC
201+
on 20 Nov 2025 — thank you for your patience.
202+
</Text>
203+
</BaseWarningWrapper>
193204
)}
194205

195206
{upToLarge && (

apps/kyberswap-interface/src/pages/Earns/UserPositions/index.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Pagination from 'components/Pagination'
1414
import { APP_PATHS } from 'constants/index'
1515
import { useActiveWeb3React } from 'hooks'
1616
import useTheme from 'hooks/useTheme'
17+
import { BaseWarningWrapper } from 'pages/Earns/PoolExplorer'
1718
import { ContentWrapper, Disclaimer, NavigateButton } from 'pages/Earns/PoolExplorer/styles'
1819
import { IconArrowLeft } from 'pages/Earns/PositionDetail/styles'
1920
import Filter from 'pages/Earns/UserPositions/Filter'
@@ -382,10 +383,12 @@ const UserPositions = () => {
382383
/>
383384

384385
{filters.chainIds?.split(',').includes(ChainId.BASE.toString()) && (
385-
<Text color={theme.primary} fontSize={12} fontStyle={'italic'}>
386-
Kyber Earn data on Base is being updated. This may take a moment and will be available again at 1:00 AM UTC
387-
on 20 Nov 2025 — thank you for your patience.
388-
</Text>
386+
<BaseWarningWrapper>
387+
<Text color={theme.subText} fontSize={12} fontWeight={500} fontStyle={'italic'}>
388+
Kyber Earn data on Base is being updated. This may take a moment and will be available again at 1:00 AM
389+
UTC on 20 Nov 2025 — thank you for your patience.
390+
</Text>
391+
</BaseWarningWrapper>
389392
)}
390393

391394
<PositionTableWrapper>

0 commit comments

Comments
 (0)