Skip to content

Commit

Permalink
fix: prefetch & img
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Nov 7, 2023
1 parent 6f5d325 commit 9f58f3f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions apps/common/contexts/useMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const MenuContextApp = ({children}: {children: React.ReactElement}): Reac
{(menu?.app || [])?.map(
(option): ReactElement => (
<Link
prefetch={false}
key={option.path}
href={option.path}>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function VaultsListInternalMigrationRow({currentVault}: {currentVault: TY

return (
<Link
prefetch={false}
href={`/vaults/${currentVault.chainID}/${toAddress(currentVault.address)}`}
className={'w-full'}>
<div className={'yearn--table-wrapper bg-neutral-900 text-neutral-0'}>
Expand Down
1 change: 1 addition & 0 deletions apps/vaults/components/list/VaultsListRetired.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function VaultsListRetired({currentVault}: {currentVault: TYDaemonVault})

return (
<Link
prefetch={false}
href={`/vaults/${currentVault.chainID}/${toAddress(currentVault.address)}?action=withdraw`}
className={'w-full'}>
<div className={'yearn--table-wrapper bg-neutral-900 text-neutral-0'}>
Expand Down
1 change: 1 addition & 0 deletions apps/vaults/components/list/VaultsListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ export function VaultsListRow({currentVault}: {currentVault: TYDaemonVault}): Re

return (
<Link
prefetch={false}
key={`${currentVault.address}`}
href={`/vaults/${currentVault.chainID}/${toAddress(currentVault.address)}`}>
<div className={'yearn--table-wrapper cursor-pointer transition-colors hover:bg-neutral-300'}>
Expand Down
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ const config = {
remotePatterns: [
{
protocol: 'https',
hostname: '**.rawcdn.githack.com'
hostname: 'rawcdn.githack.com'
},
{
protocol: 'https',
hostname: '**.raw.githubusercontent.com'
hostname: 'raw.githubusercontent.com'
},
{
protocol: 'https',
hostname: '**.assets.smold.app'
hostname: 'assets.smold.app'
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@
"postcss": ">=8.4.31"
},
"engines": {
"node": ">=18.0.0"
"node": ">=18.17.0"
}
}

0 comments on commit 9f58f3f

Please sign in to comment.