Skip to content

Commit

Permalink
fix: fixes after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
alx-khramov committed Dec 22, 2023
1 parent 253796d commit ac2d9c1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/demo-react/components/MainSection.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { ReactNode } from 'react';
import { Section } from '@lidofinance/lido-ui';
import { MainSection } from '../styles/global';

const Main = ({ children }: { children: React.ReactNode }) => {
const Main = ({ children }: { children?: ReactNode }) => {
return (
<Section>
<MainSection>{children}</MainSection>
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-react/components/contractTesting/Wrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const WrapForm = ({
const handleWrapSelectChange = (value: OptionValue) => {
setWrapSelect(value as string);
};
const handleWrapCoinChange = (value: any) => {
const handleWrapCoinChange = (value: string | number) => {
setWrapCoin(`${value}`);
setInputValue('0.00001');
};
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-react/hooks/useWithdrawalsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const useWithdrawalRequestMethods = () => {
);

const steth = useCallback(
async ({ requests }: { requests: any }) => {
async ({ requests }: { requests: BigNumberish[] }) => {
const params = [requests, account || ''] as const;

const callback = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@ export function WalletsModal(props: WalletsModalProps) {
}
}

return <></>;
return null;
}
2 changes: 1 addition & 1 deletion packages/web3-react/src/context/connectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useAutoConnect } from '../hooks/useAutoConnect';
import { CONNECTOR_NAMES } from '../constants';

export interface ConnectorsContextProps {
children: React.ReactNode;
children?: React.ReactNode;
defaultChainId: CHAINS;
rpc: Record<number, string>;
appName?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-react/src/context/web3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { POLLING_INTERVAL } from '../constants';
import ProviderConnectors, { ConnectorsContextProps } from './connectors';

export interface ProviderWeb3Props extends ConnectorsContextProps {
children: React.ReactNode;
children?: React.ReactNode;
defaultChainId: CHAINS;
supportedChainIds: CHAINS[];
swrConfig?: SWRConfiguration;
Expand Down

0 comments on commit ac2d9c1

Please sign in to comment.