Commit cc221833 authored by Ian Lapham's avatar Ian Lapham Committed by GitHub

fix(modal cutoff, lists): make modal scrollable on small screens, fix typo,...

fix(modal cutoff, lists): make modal scrollable on small screens, fix typo, auto update all lists (#1301)

* update all lists, not just active ones

* fix typo
parent 9175dd10
...@@ -24,6 +24,7 @@ import { useAllLists } from 'state/lists/hooks' ...@@ -24,6 +24,7 @@ import { useAllLists } from 'state/lists/hooks'
const Wrapper = styled.div` const Wrapper = styled.div`
position: relative; position: relative;
width: 100%; width: 100%;
overflow: auto;
` `
interface ImportProps { interface ImportProps {
......
...@@ -22,6 +22,7 @@ import { PaddedColumn, Checkbox } from './styleds' ...@@ -22,6 +22,7 @@ import { PaddedColumn, Checkbox } from './styleds'
const Wrapper = styled.div` const Wrapper = styled.div`
position: relative; position: relative;
width: 100%; width: 100%;
overflow: auto;
` `
const WarningWrapper = styled(Card)<{ highWarning: boolean }>` const WarningWrapper = styled(Card)<{ highWarning: boolean }>`
...@@ -102,7 +103,7 @@ export function ImportToken({ tokens, onBack, onDismiss, handleCurrencySelect }: ...@@ -102,7 +103,7 @@ export function ImportToken({ tokens, onBack, onDismiss, handleCurrencySelect }:
<RowFixed> <RowFixed>
<AlertTriangle stroke={theme.red1} size="10px" /> <AlertTriangle stroke={theme.red1} size="10px" />
<TYPE.body color={theme.red1} ml="4px" fontSize="10px" fontWeight={500}> <TYPE.body color={theme.red1} ml="4px" fontSize="10px" fontWeight={500}>
Unkown Source Unknown Source
</TYPE.body> </TYPE.body>
</RowFixed> </RowFixed>
</WarningWrapper> </WarningWrapper>
......
import { useAllLists } from 'state/lists/hooks' import { useAllLists } from 'state/lists/hooks'
import { UNSUPPORTED_LIST_URLS } from './../../constants/lists'
import { getVersionUpgrade, minVersionBump, VersionUpgrade } from '@uniswap/token-lists' import { getVersionUpgrade, minVersionBump, VersionUpgrade } from '@uniswap/token-lists'
import { useCallback, useEffect } from 'react' import { useCallback, useEffect } from 'react'
import { useDispatch } from 'react-redux' import { useDispatch } from 'react-redux'
...@@ -67,11 +66,9 @@ export default function Updater(): null { ...@@ -67,11 +66,9 @@ export default function Updater(): null {
} }
break break
// update any active or inactive lists
case VersionUpgrade.MAJOR: case VersionUpgrade.MAJOR:
// accept update if list is active or list in background dispatch(acceptListUpdate(listUrl))
if (activeListUrls?.includes(listUrl) || UNSUPPORTED_LIST_URLS.includes(listUrl)) {
dispatch(acceptListUpdate(listUrl))
}
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment