Skip to content

Commit

Permalink
use relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed Aug 8, 2024
1 parent 0ef05d5 commit 61244be
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 43 deletions.
8 changes: 4 additions & 4 deletions packages/explorer/src/app/(home)/EditableTableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { ChangeEvent, useState } from "react";
import { encodeField } from "@latticexyz/protocol-parser/internal";
import { SchemaAbiType } from "@latticexyz/schema-type/internal";
import { waitForTransactionReceipt } from "@wagmi/core";
import { Checkbox } from "@/components/ui/Checkbox";
import { ACCOUNT_PRIVATE_KEYS } from "@/consts";
import { useWorldAddress } from "@/hooks/useWorldAddress";
import { useStore } from "@/store";
import { Checkbox } from "../../components/ui/Checkbox";
import { ACCOUNT_PRIVATE_KEYS } from "../../consts";
import { useWorldAddress } from "../../hooks/useWorldAddress";
import { useStore } from "../../store";
import { wagmiConfig } from "../_providers";
import { TableConfig } from "../api/table/route";
import { abi } from "./abi";
Expand Down
6 changes: 3 additions & 3 deletions packages/explorer/src/app/(home)/TableSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/Select";
import { NON_EDITABLE_TABLES } from "@/consts";
import { useWorldAddress } from "@/hooks/useWorldAddress";
} from "../../components/ui/Select";
import { NON_EDITABLE_TABLES } from "../../consts";
import { useWorldAddress } from "../../hooks/useWorldAddress";

export function TableSelector({
value,
Expand Down
10 changes: 5 additions & 5 deletions packages/explorer/src/app/(home)/TablesViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ import {
getSortedRowModel,
useReactTable,
} from "@tanstack/react-table";
import { Button } from "@/components/ui/Button";
import { Checkbox } from "@/components/ui/Checkbox";
import { Input } from "@/components/ui/Input";
import { Button } from "../../components/ui/Button";
import { Checkbox } from "../../components/ui/Checkbox";
import { Input } from "../../components/ui/Input";
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/Table";
import { NON_EDITABLE_TABLES } from "@/consts";
} from "../../components/ui/Table";
import { NON_EDITABLE_TABLES } from "../../consts";
import { EditableTableCell } from "./EditableTableCell";
import { bufferToBigInt } from "./utils/bufferToBigInt";

Expand Down
6 changes: 3 additions & 3 deletions packages/explorer/src/app/interact/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import { Coins, Eye, Send } from "lucide-react";
import { Abi, AbiFunction } from "viem";
import { useDeferredValue, useState } from "react";
import { Input } from "@/components/ui/Input";
import { useHashState } from "@/hooks/useHash";
import { cn } from "@/lib/utils";
import { Input } from "../../components/ui/Input";
import { useHashState } from "../../hooks/useHash";
import { cn } from "../../lib/utils";
import { FunctionField } from "./FunctionField";

type Props = {
Expand Down
14 changes: 7 additions & 7 deletions packages/explorer/src/app/interact/FunctionField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ import { useState } from "react";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { readContract, waitForTransactionReceipt } from "@wagmi/core";
import { Button } from "@/components/ui/Button";
import { Button } from "../../components/ui/Button";
import {
Form,
FormControl,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/Form";
import { Input } from "@/components/ui/Input";
import { Separator } from "@/components/ui/Separator";
import { ACCOUNT_PRIVATE_KEYS } from "@/consts";
import { useWorldAddress } from "@/hooks/useWorldAddress";
import { useStore } from "@/store";
} from "../../components/ui/Form";
import { Input } from "../../components/ui/Input";
import { Separator } from "../../components/ui/Separator";
import { ACCOUNT_PRIVATE_KEYS } from "../../consts";
import { useWorldAddress } from "../../hooks/useWorldAddress";
import { useStore } from "../../store";
import { wagmiConfig } from "../_providers";

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Inter, JetBrains_Mono } from "next/font/google";
import { Toaster } from "sonner";
import { Theme } from "@radix-ui/themes";
import "@radix-ui/themes/styles.css";
import { Navigation } from "@/components/Navigation";
import { Navigation } from "../components/Navigation";
import { Providers } from "./_providers";
import "./globals.css";

Expand Down
6 changes: 3 additions & 3 deletions packages/explorer/src/components/AccountSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { formatEther } from "viem";
import { useEffect } from "react";
import { ACCOUNTS } from "../consts";
import { useStore } from "../store";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/Select";
import { ACCOUNTS } from "@/consts";
import { useStore } from "@/store";
} from "./ui/Select";

export function AccountSelect() {
const { account, setAccount, balances, fetchBalances } = useStore();
Expand Down
6 changes: 3 additions & 3 deletions packages/explorer/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import Link from "next/link";
import { usePathname } from "next/navigation";
import { LatestBlock } from "@/components/LatestBlock";
import { Separator } from "@/components/ui/Separator";
import { cn } from "@/lib/utils";
import { LatestBlock } from "../components/LatestBlock";
import { Separator } from "../components/ui/Separator";
import { cn } from "../lib/utils";
import { AccountSelect } from "./AccountSelect";

export function Navigation() {
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/components/ui/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type VariantProps, cva } from "class-variance-authority";
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cn } from "@/lib/utils";
import { cn } from "../../lib/utils";

const buttonVariants = cva(
// eslint-disable-next-line max-len
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/components/ui/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Check } from "lucide-react";
import * as React from "react";
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
import { cn } from "@/lib/utils";
import { cn } from "../../lib/utils";

const Checkbox = React.forwardRef<
React.ElementRef<typeof CheckboxPrimitive.Root>,
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/components/ui/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Check, ChevronRight, Circle } from "lucide-react";
import * as React from "react";
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
import { cn } from "@/lib/utils";
import { cn } from "../../lib/utils";

const DropdownMenu = DropdownMenuPrimitive.Root;

Expand Down
4 changes: 2 additions & 2 deletions packages/explorer/src/components/ui/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
} from "react-hook-form";
import * as LabelPrimitive from "@radix-ui/react-label";
import { Slot } from "@radix-ui/react-slot";
import { Label } from "@/components/ui/Label";
import { cn } from "@/lib/utils";
import { Label } from "../../components/ui/Label";
import { cn } from "../../lib/utils";

const Form = FormProvider;

Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/components/ui/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { cn } from "@/lib/utils";
import { cn } from "../../lib/utils";

export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/components/ui/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { type VariantProps, cva } from "class-variance-authority";
import * as React from "react";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cn } from "@/lib/utils";
import { cn } from "../../lib/utils";

const labelVariants = cva(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/components/ui/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Check, ChevronDown, ChevronUp } from "lucide-react";
import * as React from "react";
import * as SelectPrimitive from "@radix-ui/react-select";
import { cn } from "@/lib/utils";
import { cn } from "../../lib/utils";

const Select = SelectPrimitive.Root;

Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/components/ui/Separator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as React from "react";
import * as SeparatorPrimitive from "@radix-ui/react-separator";
import { cn } from "@/lib/utils";
import { cn } from "../../lib/utils";

const Separator = React.forwardRef<
React.ElementRef<typeof SeparatorPrimitive.Root>,
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/src/components/ui/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { cn } from "@/lib/utils";
import { cn } from "../../lib/utils";

const Table = React.forwardRef<
HTMLTableElement,
Expand Down
5 changes: 1 addition & 4 deletions packages/explorer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 61244be

Please sign in to comment.