pull/137/head
Neeraj Kashyap 2021-08-23 08:05:36 -07:00
rodzic fa28debd3b
commit 89a63b41fb
3 zmienionych plików z 4 dodań i 23 usunięć

Wyświetl plik

@ -444,26 +444,6 @@ const EntriesNavigation = () => {
colorScheme="suggested"
></Button>
)}
{streamBoundary.next_event_time &&
streamBoundary.end_time != 0 &&
!eventsIsFetching ? (
<Button
onClick={() => {
updateStreamBoundaryWith({
end_time: streamBoundary.next_event_time + 5 * 60,
include_start: false,
include_end: true,
});
}}
variant="outline"
colorScheme="suggested"
>
Load latest transaction
</Button>
) : (
"" // some strange behaivior without else condition return 0 wich can see on frontend page
)}
</Stack>
{entries.map((entry, idx) => (
<StreamEntry

Wyświetl plik

@ -1,6 +1,5 @@
import React, { useContext, useEffect, useState } from "react";
import {
Flex,
Text,
Stack,
Tooltip,
@ -12,7 +11,6 @@ import {
Spinner,
chakra,
} from "@chakra-ui/react";
import moment from "moment";
import UIContext from "../../core/providers/UIProvider/context";
import { useToast } from "../../core/hooks";
import { useSubscriptions } from "../../core/hooks";
@ -118,6 +116,7 @@ const EthereumWhalewatchCard_ = ({
textAlign="center"
spacing={0}
alignItems="center"
key={`${whaleType}-${entry.event_data.date_range.start_time}-${entry.event_data.date_range.end_time}`}
>
<Stack
overflow="hidden"

Wyświetl plik

@ -6,7 +6,9 @@ import { queryCacheProps } from "./hookCommon";
import { defaultStreamBoundary } from "../services/servertime.service.js";
const useStream = (q) => {
const [streamQuery, setStreamQuery] = useState(q || "");
const [streamQuery, setStreamQuery] = useState(
q || "type:ethereum_whalewatch"
);
const [events, setEvents] = useState([]);
const [streamBoundary, setStreamBoundary] = useState({});
const [olderEvent, setOlderEvent] = useState(null);