Skip to content

Commit

Permalink
Minor Fixes in Search Tab: 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmatrix committed Aug 29, 2023
1 parent e68e25d commit bff9a20
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 25 deletions.
11 changes: 5 additions & 6 deletions components/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ const Preview: React.FC<ModalProps> = ({ show, onClose, _ENS_, chain, handlePare
onClose()
}

// Finish query for ENS domain records
// Set Records to show for ENS domain
function concludeGet(data: React.SetStateAction<any[]> | undefined) {
if (data) {
setPreCache(data)
Expand All @@ -1135,7 +1135,6 @@ const Preview: React.FC<ModalProps> = ({ show, onClose, _ENS_, chain, handlePare
setMetadata('', addr, contenthash, avatar)
}
setLoading(false)
setSync(false)
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [sync, recordhash, ownerhash, resolver, addr, contenthash, avatar, hashType])
Expand Down Expand Up @@ -1492,15 +1491,15 @@ const Preview: React.FC<ModalProps> = ({ show, onClose, _ENS_, chain, handlePare

// Triggers fetching resolver and records
React.useEffect(() => {
if (queue && ENS) {
if (queue && ENS && !sync) {
getResolver(history, ENS)
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [history, queue, ENS])
}, [history, queue, ENS, sync])

// Triggers setting metadata
React.useEffect(() => {
if (history && queue && resolver) {
if (history && queue && resolver && !sync) {
if (recordhash) {
if (recordhash.startsWith('https://')) {
setHashType('gateway')
Expand All @@ -1518,7 +1517,7 @@ const Preview: React.FC<ModalProps> = ({ show, onClose, _ENS_, chain, handlePare
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [history, queue, resolver, recordhash, ownerhash])
}, [history, queue, resolver, recordhash, ownerhash, sync])

// Internal state handling of editable/active records during updates by user
React.useEffect(() => {
Expand Down
Empty file removed out/.nojekyll
Empty file.
4 changes: 2 additions & 2 deletions out/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/ccip2-eth-client/_next/static/css/4bf26507eb88f209.css" as="style"/><link rel="stylesheet" href="/ccip2-eth-client/_next/static/css/4bf26507eb88f209.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/ccip2-eth-client/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/ccip2-eth-client/_next/static/chunks/webpack-d1034d76ec3e6743.js" defer=""></script><script src="/ccip2-eth-client/_next/static/chunks/framework-28712122b8f24e0e.js" defer=""></script><script src="/ccip2-eth-client/_next/static/chunks/main-235b4afd80b524a5.js" defer=""></script><script src="/ccip2-eth-client/_next/static/chunks/pages/_app-ce40ed3699ec54f3.js" defer=""></script><script src="/ccip2-eth-client/_next/static/chunks/pages/_error-4a934674346210d3.js" defer=""></script><script src="/ccip2-eth-client/_next/static/jyzh0eJPCthZtBC97W3tf/_buildManifest.js" defer=""></script><script src="/ccip2-eth-client/_next/static/jyzh0eJPCthZtBC97W3tf/_ssgManifest.js" defer=""></script><script src="/ccip2-eth-client/_next/static/jyzh0eJPCthZtBC97W3tf/_middlewareManifest.js" defer=""></script></head><body><div id="__next"><div data-rk=""><style>[data-rk]{--rk-blurs-modalOverlay:;--rk-colors-accentColor:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-accentColorForeground:white;--rk-colors-actionButtonBorder:white;--rk-colors-actionButtonBorderMobile:white;--rk-colors-actionButtonSecondaryBackground:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-closeButton:black;--rk-colors-closeButtonBackground:linear-gradient(112deg, rgba(198,127,105,1) 0%, rgba(218,85,81,1) 48%, rgba(212,160,99,1) 100%);--rk-colors-connectButtonBackground:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-connectButtonBackgroundError:red;--rk-colors-connectButtonInnerBackground:linear-gradient(153deg, rgba(190,95,65,1) 0%, rgba(152,33,30,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-connectButtonText:white;--rk-colors-connectButtonTextError:white;--rk-colors-connectionIndicator:white;--rk-colors-downloadBottomCardBackground:none;--rk-colors-downloadTopCardBackground:none;--rk-colors-error:red;--rk-colors-generalBorder:rgb(255, 255, 255, 0.75);--rk-colors-generalBorderDim:rgb(255, 255, 255, 0.25);--rk-colors-menuItemBackground:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-modalBackdrop:none;--rk-colors-modalBackground:linear-gradient(42deg, rgba(125,90,78,1) 0%, rgba(97,53,38,1) 100%);--rk-colors-modalBorder:white;--rk-colors-modalText:white;--rk-colors-modalTextDim:white;--rk-colors-modalTextSecondary:white;--rk-colors-profileAction:rgb(0, 0, 0, 0.5);--rk-colors-profileActionHover:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-profileForeground:rgb(0, 0, 0, 0.5);--rk-colors-selectedOptionBorder:white;--rk-colors-standby:white;--rk-fonts-body:Spotnik;--rk-radii-actionButton:4px;--rk-radii-connectButton:6px;--rk-radii-menuButton:6px;--rk-radii-modal:6px;--rk-radii-modalMobile:6px;--rk-shadows-connectButton:;--rk-shadows-dialog:;--rk-shadows-profileDetailsAction:;--rk-shadows-selectedOption:;--rk-shadows-selectedWallet:;--rk-shadows-walletLogo:;}</style><div style="font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>
<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/4bf26507eb88f209.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4bf26507eb88f209.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-d1034d76ec3e6743.js" defer=""></script><script src="/_next/static/chunks/framework-28712122b8f24e0e.js" defer=""></script><script src="/_next/static/chunks/main-235b4afd80b524a5.js" defer=""></script><script src="/_next/static/chunks/pages/_app-e1e684d520167dd8.js" defer=""></script><script src="/_next/static/chunks/pages/_error-4a934674346210d3.js" defer=""></script><script src="/_next/static/KNpx3ms_YjLkNTLTZjuvv/_buildManifest.js" defer=""></script><script src="/_next/static/KNpx3ms_YjLkNTLTZjuvv/_ssgManifest.js" defer=""></script><script src="/_next/static/KNpx3ms_YjLkNTLTZjuvv/_middlewareManifest.js" defer=""></script></head><body><div id="__next"><div data-rk=""><style>[data-rk]{--rk-blurs-modalOverlay:;--rk-colors-accentColor:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-accentColorForeground:white;--rk-colors-actionButtonBorder:white;--rk-colors-actionButtonBorderMobile:white;--rk-colors-actionButtonSecondaryBackground:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-closeButton:black;--rk-colors-closeButtonBackground:linear-gradient(112deg, rgba(198,127,105,1) 0%, rgba(218,85,81,1) 48%, rgba(212,160,99,1) 100%);--rk-colors-connectButtonBackground:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-connectButtonBackgroundError:red;--rk-colors-connectButtonInnerBackground:linear-gradient(153deg, rgba(190,95,65,1) 0%, rgba(152,33,30,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-connectButtonText:white;--rk-colors-connectButtonTextError:white;--rk-colors-connectionIndicator:white;--rk-colors-downloadBottomCardBackground:none;--rk-colors-downloadTopCardBackground:none;--rk-colors-error:red;--rk-colors-generalBorder:rgb(255, 255, 255, 0.75);--rk-colors-generalBorderDim:rgb(255, 255, 255, 0.25);--rk-colors-menuItemBackground:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-modalBackdrop:none;--rk-colors-modalBackground:linear-gradient(42deg, rgba(125,90,78,1) 0%, rgba(97,53,38,1) 100%);--rk-colors-modalBorder:white;--rk-colors-modalText:white;--rk-colors-modalTextDim:white;--rk-colors-modalTextSecondary:white;--rk-colors-profileAction:rgb(0, 0, 0, 0.5);--rk-colors-profileActionHover:linear-gradient(112deg, rgba(190,95,65,1) 0%, rgba(191,41,36,1) 48%, rgba(203,111,0,1) 100%);--rk-colors-profileForeground:rgb(0, 0, 0, 0.5);--rk-colors-selectedOptionBorder:white;--rk-colors-standby:white;--rk-fonts-body:Spotnik;--rk-radii-actionButton:4px;--rk-radii-connectButton:6px;--rk-radii-menuButton:6px;--rk-radii-modal:6px;--rk-radii-modalMobile:6px;--rk-shadows-connectButton:;--rk-shadows-dialog:;--rk-shadows-profileDetailsAction:;--rk-shadows-selectedOption:;--rk-shadows-selectedWallet:;--rk-shadows-walletLogo:;}</style><div style="font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>
body { margin: 0; color: #000; background: #fff; }
.next-error-h1 {
border-right: 1px solid rgba(0, 0, 0, .3);
Expand All @@ -8,4 +8,4 @@
.next-error-h1 {
border-right: 1px solid rgba(255, 255, 255, .3);
}
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"jyzh0eJPCthZtBC97W3tf","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"KNpx3ms_YjLkNTLTZjuvv","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
Loading

0 comments on commit bff9a20

Please sign in to comment.