Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions frontend/app/overview/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import { useEffect } from 'react';
import { useRouter, usePathname, useParams } from 'next/navigation';
import Link from 'next/link';
import { usePowersStore, useStatusStore, setStatus, setError, useSavedProtocolsStore, setAction, useActionStore } from "@/context/store";
import { usePrivy, useWallets } from "@privy-io/react-auth";
import { useConnection, useSwitchChain } from "wagmi";
import { usePowers } from "@/hooks/usePowers";
import { usePowersLive } from "@/hooks/usePowersLive";
import { parseChainId } from "@/utils/parsers";
import { ThemeToggle } from '@/components/ThemeToggle';
import { ShareQrButton } from '@/components/ShareQrButton';
import { useAddressDisplay } from "@/hooks/useAddressDisplay";
import { ArrowRightStartOnRectangleIcon, CheckCircleIcon, ArrowLeftIcon } from '@heroicons/react/24/outline';
import { ArrowLeftIcon } from '@heroicons/react/24/outline';

interface OverviewLayoutProps {
children: React.ReactNode;
Expand All @@ -25,8 +23,6 @@ export default function OverviewLayout({ children }: OverviewLayoutProps) {
const powers = usePowersStore();
const statusPowers = useStatusStore();
const { savedProtocols, loadSavedProtocols, addProtocol } = useSavedProtocolsStore();
const { wallets, ready: walletsReady } = useWallets();
const {ready, authenticated, login, logout, connectWallet} = usePrivy();
const { powers: powersAddress, chainId } = useParams<{ chainId: string, powers: string }>();
const { fetchPowers } = usePowers();
usePowersLive(
Expand All @@ -36,7 +32,6 @@ export default function OverviewLayout({ children }: OverviewLayoutProps) {
const switchChain = useSwitchChain();
const { chain } = useConnection();
const action = useActionStore();
const { displayName, isLoading } = useAddressDisplay(wallets[0]?.address);

const isOverviewPage = pathname === '/overview';

Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"start": "next start",
"preview": "next start",
"test": "playwright test --trace=on",
"test:e2e": "playwright test --trace=on",
"test:report": "playwright test --trace=on --reporter=html && playwright show-report",
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix"
Expand Down
Loading