Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 3ac689d

Browse files
authored
fix: Update TableProps to include size prop and ensure correct client type in useWalletState (#101)
1 parent f6fb309 commit 3ac689d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/primitives/Table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export type TableProps<T extends Columns> = Component<
134134
className?: string;
135135
children?: PropsWithChildren["children"];
136136
onSort?: (id: keyof T, order: Order) => void;
137+
size?: ListProps["size"];
137138
} & TableHeaders<T>,
138139
HTMLDivElement
139140
>;

src/hooks/useWalletState.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ export default function useWalletState(chains: (Chain & { explorers: Explorer[]
3131

3232
const wrapClient = useCallback(async () => {
3333
const _client = await getWalletClient<typeof config, 1>(config);
34-
35-
return (await options?.client?.(_client)) ?? _client;
34+
// biome-ignore lint/suspicious/noExplicitAny: <Type instantiation is excessively deep and possibly infinite.ts(2589)>
35+
return (await options?.client?.(_client as any)) ?? _client;
3636
}, [config, options?.client]);
3737

3838
// biome-ignore lint/correctness/useExhaustiveDependencies: required for correctness
3939
useEffect(() => {
4040
async function set() {
41-
setClient(await wrapClient());
41+
const client = (await wrapClient()) as WalletClient;
42+
setClient(client);
4243
}
4344

4445
set();

0 commit comments

Comments
 (0)