Skip to content

Commit

Permalink
Merge branch 'main' into add-base-for-cow
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Dec 17, 2024
2 parents 7839bf3 + 5c3dc5f commit 76b85f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/nextjs/app/v3/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const BalancerV3: NextPage = () => {
<div>
<Alert type="warning">
<div className="flex items-center gap-2">
You are connected to an unsupported network. To continue, please switch
You are connected to an unsupported network. To continue, please switch to Sepolia, Ethereum, or
Gnosis
<ArrowUpRightIcon className="w-4 h-4" />
</div>
</Alert>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { usePathname } from "next/navigation";
import { useTheme } from "next-themes";
import { useAccount, useSwitchChain } from "wagmi";
import { ArrowsRightLeftIcon } from "@heroicons/react/24/solid";
Expand All @@ -16,9 +17,17 @@ export const NetworkOptions = ({ hidden = false }: NetworkOptionsProps) => {
const { resolvedTheme } = useTheme();
const isDarkMode = resolvedTheme === "dark";

// TODO: Update this as v3 adds more network support
const pathname = usePathname();
// Filter out base and arbitrum for v3 pool creation page
const filteredAllowedNetworks =
pathname === "/v3"
? allowedNetworks.filter(network => network.id !== 42161 && network.id !== 8453)
: allowedNetworks;

return (
<>
{allowedNetworks
{filteredAllowedNetworks
.filter(allowedNetwork => allowedNetwork.id !== chain?.id)
.map(allowedNetwork => (
<li key={allowedNetwork.id} className={hidden ? "hidden" : ""}>
Expand Down

0 comments on commit 76b85f5

Please sign in to comment.