mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex-taker-v2.git
synced 2026-09-21 16:52:01 -07:00
Merge pull request #43 from Permissionless-Software-Foundation/dh-userdata-loading
feat(user-data): Added loading optimization to user-data page
This commit is contained in:
+4
-1
@@ -14,7 +14,10 @@ import NavMenu from './components/nav-menu'
|
|||||||
import useAppState from './hooks/state'
|
import useAppState from './hooks/state'
|
||||||
import { UninitializedView, InitializedView } from './components/starter-views'
|
import { UninitializedView, InitializedView } from './components/starter-views'
|
||||||
|
|
||||||
const sigleViewPaths = ['/profile']
|
// Paths with custom async loader
|
||||||
|
// Single Views, load minimal async services in order to prevent the long-time screen loader.
|
||||||
|
const sigleViewPaths = ['/profile', 'user-data']
|
||||||
|
|
||||||
function App (props) {
|
function App (props) {
|
||||||
// Load all the app state into a single object that can be passed to child
|
// Load all the app state into a single object that can be passed to child
|
||||||
// components.
|
// components.
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ function NftsForSale (props) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
setIconsAreLoaded(true)
|
setIconsAreLoaded(true)
|
||||||
}
|
}
|
||||||
}, [fetchTokenMutableData, appData])
|
}, [fetchTokenMutableData])
|
||||||
|
|
||||||
// Check if token data exists in the cache and add it to the tokens object.
|
// Check if token data exists in the cache and add it to the tokens object.
|
||||||
const reviewNftCachedData = useCallback(async (offers) => {
|
const reviewNftCachedData = useCallback(async (offers) => {
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ function InfoButton (props) {
|
|||||||
<Col xs={4}><b>User Data</b>:</Col>
|
<Col xs={4}><b>User Data</b>:</Col>
|
||||||
<Col xs={8}>
|
<Col xs={8}>
|
||||||
<a
|
<a
|
||||||
href={`/user-data/${props.token.tokenId}`}
|
href={`/user-data/${props.token.tokenId}#single-view`}
|
||||||
target='_blank'
|
target='_blank'
|
||||||
rel='noopener noreferrer'
|
rel='noopener noreferrer'
|
||||||
className='btn btn-link p-0'
|
className='btn btn-link p-0'
|
||||||
|
|||||||
Reference in New Issue
Block a user