Skip to content

Commit

Permalink
fix: fix build err
Browse files Browse the repository at this point in the history
  • Loading branch information
YanYuanFE committed Sep 13, 2024
1 parent 68ebc62 commit 21fac1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/components/SideBar.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Button } from "@/components/ui/button";
import { Cog, Files, Info, SquareCode } from "lucide-react";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { usePathname, useRouter } from "next/navigation";
import { Tooltip } from "@/components/Tooltip";
import logo from "@/assets/logo.png";
import { createQueryString } from "@/utils/common";

export enum PageEnum {
EDITOR = "/",
DEPLOY = 'deploy',
SETTING = "setting",
ABOUT = "about"
}
Expand Down Expand Up @@ -45,8 +43,6 @@ const pages = [
export const SideBar = () => {
const router = useRouter();
const pathname = usePathname();
const searchParams = useSearchParams();
const tab = searchParams.get('tab') as TabEnum;
console.log(pathname)

const handleClick = (v: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/starknet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Contract} from "@/types";
export async function genContractData (
contractName: string,
compileResult: string,
): Promise<Contract | null> {
): Promise<Partial<Contract> | null> {
const data = JSON.parse(compileResult)
// const sierra = data.sierra_program;
// const casm = await JSON.parse(casmFile)
Expand Down

0 comments on commit 21fac1d

Please sign in to comment.