[#128] Fix type issues
This commit is contained in:
parent
444f1b6584
commit
9c42f54331
@ -15,7 +15,7 @@ import type { AgGridReact } from 'ag-grid-react';
|
|||||||
|
|
||||||
const Markets = () => {
|
const Markets = () => {
|
||||||
const { pathname, push } = useRouter();
|
const { pathname, push } = useRouter();
|
||||||
const gridRef = useRef<AgGridReact>();
|
const gridRef = useRef<AgGridReact | null>(null);
|
||||||
const update = useCallback(
|
const update = useCallback(
|
||||||
(delta: Markets_markets_data) => {
|
(delta: Markets_markets_data) => {
|
||||||
const update: Markets_markets[] = [];
|
const update: Markets_markets[] = [];
|
||||||
|
@ -16,9 +16,9 @@ import type { AgGridReact } from 'ag-grid-react';
|
|||||||
|
|
||||||
export const Positions = () => {
|
export const Positions = () => {
|
||||||
const { pathname, push } = useRouter();
|
const { pathname, push } = useRouter();
|
||||||
const gridRef = useRef<AgGridReact>();
|
const gridRef = useRef<AgGridReact | null>(null);
|
||||||
const { keypair } = useVegaWallet();
|
const { keypair } = useVegaWallet();
|
||||||
const variables = useMemo(() => ({ partyId: keypair.pub }), [keypair]);
|
const variables = useMemo(() => ({ partyId: keypair?.pub }), [keypair]);
|
||||||
const update = useCallback(
|
const update = useCallback(
|
||||||
(delta: PositionSubscribe_positions) => {
|
(delta: PositionSubscribe_positions) => {
|
||||||
const update: Positions_party_positions[] = [];
|
const update: Positions_party_positions[] = [];
|
||||||
|
@ -7,7 +7,7 @@ import { AgGridColumn } from 'ag-grid-react';
|
|||||||
import type { AgGridReact } from 'ag-grid-react';
|
import type { AgGridReact } from 'ag-grid-react';
|
||||||
|
|
||||||
interface MarketListTableProps {
|
interface MarketListTableProps {
|
||||||
data: Markets_markets[];
|
data: Markets_markets[] | null;
|
||||||
onRowClicked: (marketId: string) => void;
|
onRowClicked: (marketId: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import {
|
|||||||
} from '@vegaprotocol/graphql';
|
} from '@vegaprotocol/graphql';
|
||||||
|
|
||||||
interface PositionsTableProps {
|
interface PositionsTableProps {
|
||||||
data: Positions_party_positions[];
|
data: Positions_party_positions[] | null;
|
||||||
onRowClicked: (marketId: string) => void;
|
onRowClicked: (marketId: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user