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

fix: Update TableProps to include size prop and ensure correct client… #101

Merged
merged 1 commit into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/primitives/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export type TableProps<T extends Columns> = Component<
className?: string;
children?: PropsWithChildren["children"];
onSort?: (id: keyof T, order: Order) => void;
size?: ListProps["size"];
} & TableHeaders<T>,
HTMLDivElement
>;
Expand Down
7 changes: 4 additions & 3 deletions src/hooks/useWalletState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ export default function useWalletState(chains: (Chain & { explorers: Explorer[]

const wrapClient = useCallback(async () => {
const _client = await getWalletClient<typeof config, 1>(config);

return (await options?.client?.(_client)) ?? _client;
// biome-ignore lint/suspicious/noExplicitAny: <Type instantiation is excessively deep and possibly infinite.ts(2589)>
return (await options?.client?.(_client as any)) ?? _client;
}, [config, options?.client]);

// biome-ignore lint/correctness/useExhaustiveDependencies: required for correctness
useEffect(() => {
async function set() {
setClient(await wrapClient());
const client = (await wrapClient()) as WalletClient;
setClient(client);
}

set();
Expand Down