Lercerss / graphelier

TFBAG Capstone project 2019-2020
The Unlicense
5 stars 1 forks source link

[#234] Refactor OBS #235

Open alvyn279 opened 4 years ago

alvyn279 commented 4 years ago

before:

interface Props extends WithStyles<typeof styles>, WithSnackbarProps{
    orderDetails: OrderDetails,
    showOrderInfoDrawer: boolean,
    onTimestampSelected: Function,
    currentOrderbookTimestamp: string,
    lastModificationType: LastModificationType,
}

interface State {
    lastSodOffset: bigInt.BigInteger,
    selectedDateNano: bigInt.BigInteger,
    selectedTimeString: string,
    datePickerValue: moment.Moment | null,
    selectedInstrument: string,
    instruments: Array<string>,
    listItems: ListItems,
    maxQuantity: number,
    topOfBookItems: Array<TopOfBookItem>,
    loadingInstruments: boolean,
    loadingOrderbook: boolean,
    loadingGraph: boolean,
    graphUnavailable: boolean,
    graphStartTime: bigInt.BigInteger,
    graphEndTime: bigInt.BigInteger,
    playback: boolean,
}

after:

interface Props extends WithStyles<typeof styles>, WithSnackbarProps {
    orderDetails: OrderDetails,
    showOrderInfoDrawer: boolean,
    onTimestampSelected: Function,
    currentOrderbookTimestamp: string,
    lastModificationType: LastModificationType,
    timeString: string,
    selectedDateNano: bigInt.BigInteger,
    onPlayback: Function,
    playback: boolean,
    instruments: Array<string>,
}

interface State {
    lastSodOffset: bigInt.BigInteger,
    datePickerValue: moment.Moment | null,
    selectedInstrument: string,
    listItems: ListItems,
    maxQuantity: number,
    topOfBookItems: Array<TopOfBookItem>,
    loadingOrderbook: boolean,
    loadingGraph: boolean,
    graphUnavailable: boolean,
    clickedGraph: boolean,
}