Skip to content

Commit

Permalink
fix: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
RutvikGhaskataEalf committed Oct 4, 2024
1 parent 1cc3cd8 commit e4f7c7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/workspace/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import { Fragment } from "react";
import { BuildDeployPanel } from "@/components/build-deploy-panel";
import TopBottom from "@/components/top-bottom";
import {
Expand All @@ -19,10 +18,10 @@ export default function Page({params: {id}}: {params: {id: string}}) {
<ResizablePanel defaultSize={25} className="flex flex-col">
<TopBottom
top={
<Fragment>
<>
<BuildDeployPanel />
<FileExplorer />
</Fragment>
</>
}
bottom={<ContractViewer name={id}/>}
topDefaultSize={30}
Expand Down
4 changes: 2 additions & 2 deletions components/workspace/use-cli-commands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useLogs, useProposalInfo, useTransactionResult } from "@/data/client";
import { db } from "@/data/db";
import { useWallet } from "@/data/wallet";
import { Loader2 } from "lucide-react";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { usePathname } from "next/navigation";
import { PropsWithChildren, useContext, useEffect, useState } from "react";
import { TerminalContext } from "react-terminal";
import { useWorkspaceId } from "./use-workspace-id";
Expand Down Expand Up @@ -395,7 +395,7 @@ function DeployedContractDetails({ id }: { id?: string }) {
if (!data) return <Deploying />;

if (data?.address) {
setSearchParams({ ["contract-viewer-address"]: data.address });
setSearchParams({ "contract-viewer-address": data.address });
}

return <p>Contract Address: {data.address}</p>;
Expand Down

0 comments on commit e4f7c7e

Please sign in to comment.