Skip to content

Commit

Permalink
feat(nfts): if refresh button on page trigger click
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed May 7, 2022
1 parent 38a6480 commit af2936a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const NftsContainer = (props) => {

const doRefresh = (e) => {
if (props.isAuthenticated) {
const refreshButton = document.getElementById('nft-refresh')
if (refreshButton) {
refreshButton.click()
}
e.preventDefault()
e.returnValue = ''
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ const NftAsset: React.FC<Props> = ({
</CustomLink>
</div>
<Button
id='nft-refresh'
data-e2e='nftAssetRefresh'
style={{
borderRadius: '50%',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const TraitGridFilters: React.FC<Props> = ({
</Button>
) : null}
<Button
id='nft-refresh'
height='100%'
onClick={() => {
if (!isRefreshRotating) setRefreshTrigger((r) => r + 1)
Expand Down

0 comments on commit af2936a

Please sign in to comment.