Skip to content

Commit db029a8

Browse files
committed
Feat: Add ch-2
1 parent b83a327 commit db029a8

39 files changed

+1645
-179
lines changed

packages/nextjs/.env

Whitespace-only changes.

packages/nextjs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ yarn-error.log*
3434
# typescript
3535
*.tsbuildinfo
3636
next-env.d.ts
37+
38+
yarn.lock

packages/nextjs/app/debug/_components/DebugContracts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function DebugContracts() {
2424
}, [selectedContract, setSelectedContract]);
2525

2626
return (
27-
<div className="flex flex-col gap-y-6 lg:gap-y-8 py-8 lg:py-12 justify-center items-center">
27+
<div className="flex flex-col gap-y-6 lg:gap-y-8 py-8 lg:py-12 justify-center items-center text-primary">
2828
{contractNames.length === 0 ? (
2929
<p className="text-3xl mt-14">No contracts found!</p>
3030
) : (

packages/nextjs/app/debug/_components/contract/ContractInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export const ContractInput = ({
5858
<div className="flex flex-col gap-1.5 w-full">
5959
<div className="flex items-center ml-2">
6060
{paramType.name && (
61-
<span className="text-xs font-medium mr-2 leading-none">
61+
<span className="text-xs font-medium mr-2 leading-none text-neutral">
6262
{paramType.name}
6363
</span>
6464
)}
65-
<span className="block text-xs font-extralight leading-none">
65+
<span className="block text-xs font-extralight leading-none text-neutral">
6666
{displayType(paramType.type)}
6767
</span>
6868
</div>

packages/nextjs/app/debug/_components/contract/ContractReadMethods.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const ContractReadMethods = ({
2929
};
3030
});
3131
if (!functionsToDisplay.length) {
32-
return <>No read methods</>;
32+
return <span className="text-neutral">No read methods</span>;
3333
}
3434
return (
3535
<>

packages/nextjs/app/debug/_components/contract/ContractUI.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const ContractUI = ({
4141

4242
if (!deployedContractData) {
4343
return (
44-
<p className="text-3xl mt-14">
44+
<p className="text-3xl mt-14 text-neutral">
4545
{`No contract found by the name of "${contractName}" on chain "${targetNetwork.name}"!`}
4646
</p>
4747
);
@@ -59,7 +59,9 @@ export const ContractUI = ({
5959
<span className="font-bold text-neutral">{contractName}</span>
6060
<Address address={deployedContractData.address} />
6161
<div className="flex gap-1 items-center">
62-
<span className="font-bold text-sm">Balance:</span>
62+
<span className="font-bold text-sm text-neutral">
63+
Balance:
64+
</span>
6365
<Balance
6466
address={deployedContractData.address}
6567
className="px-0 h-1.5 min-h-[0.375rem] text-network"
@@ -69,7 +71,7 @@ export const ContractUI = ({
6971
</div>
7072
{targetNetwork && (
7173
<p className="my-0 text-sm">
72-
<span className="font-bold">Network</span>:{" "}
74+
<span className="font-bold text-neutral">Network</span>:{" "}
7375
<span className="text-network">{targetNetwork.name}</span>
7476
</p>
7577
)}
@@ -86,7 +88,7 @@ export const ContractUI = ({
8688
<div className="rounded-[5px] border border-[#8A45FC] flex flex-col mt-10 relative bg-component">
8789
<div className="bg-function w-[140px] h-[32.5px] absolute self-start -top-[43px] -left-[1px] -z-10 py-[0.55rem] clip-corner">
8890
<div className="flex items-center justify-center space-x-2">
89-
<p className="my-0 text-sm text-center">Read</p>
91+
<p className="my-0 text-sm text-center text-neutral">Read</p>
9092
</div>
9193
</div>
9294
<div className="p-5 divide-y divide-secondary">
@@ -100,7 +102,7 @@ export const ContractUI = ({
100102
<div className="rounded-[5px] border border-[#8A45FC] flex flex-col mt-10 relative bg-component">
101103
<div className="w-[140px] h-[32.5px] absolute self-start -top-[43px] -left-[1px] -z-10 py-[0.55rem] bg-function clip-corner">
102104
<div className="flex items-center justify-center space-x-2">
103-
<p className="my-0 text-sm">Write</p>
105+
<p className="my-0 text-sm text-neutral">Write</p>
104106
</div>
105107
</div>
106108
<div className="p-5 divide-y divide-secondary">

packages/nextjs/app/debug/_components/contract/ContractVariables.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const ContractVariables = ({
3131
};
3232
});
3333
if (!functionsToDisplay.length) {
34-
return <>No contract variables</>;
34+
return <span className="text-neutral">No contract variables</span>;
3535
}
3636

3737
return (

packages/nextjs/app/debug/_components/contract/DisplayVariable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const DisplayVariable = ({
5555
{abiFunction.name}
5656
</h3>
5757
<button
58-
className="btn btn-ghost btn-xs"
58+
className="btn btn-ghost btn-xs text-neutral"
5959
onClick={async () => await refetch()}
6060
>
6161
{!isLoading && isFetching ? (

packages/nextjs/app/debug/_components/contract/WriteOnlyFunctionForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const WriteOnlyFunctionForm = ({
116116
{inputs}
117117
<div className="flex justify-between gap-2">
118118
{!zeroInputs && (
119-
<div className="flex-grow basis-0">
119+
<div className="flex-grow basis-0 text-neutral-content">
120120
{displayedTxResult ? (
121121
<TxReceipt txResult={displayedTxResult} />
122122
) : null}

packages/nextjs/app/exampleView1/page.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)