kopia lustrzana https://github.com/bugout-dev/moonstream
commit
a9eb67ebea
|
@ -218,6 +218,7 @@ const Analytics = () => {
|
||||||
url={s3PresignedURLs[timeRange]}
|
url={s3PresignedURLs[timeRange]}
|
||||||
id={v4()}
|
id={v4()}
|
||||||
type={v4()}
|
type={v4()}
|
||||||
|
refetchLinks={dashboardLinksCache.refetch}
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
|
|
@ -12,12 +12,13 @@ timeMap[HOUR_KEY] = "hour";
|
||||||
timeMap[DAY_KEY] = "day";
|
timeMap[DAY_KEY] = "day";
|
||||||
timeMap[WEEK_KEY] = "week";
|
timeMap[WEEK_KEY] = "week";
|
||||||
|
|
||||||
const SubscriptionReport = ({ timeRange, url, id, type }) => {
|
const SubscriptionReport = ({ timeRange, url, id, type, refetchLinks }) => {
|
||||||
const { data, isLoading } = usePresignedURL({
|
const { data, isLoading } = usePresignedURL({
|
||||||
url: url,
|
url: url,
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
id: id,
|
id: id,
|
||||||
type: type,
|
type: type,
|
||||||
|
requestNewURLCallback: refetchLinks,
|
||||||
});
|
});
|
||||||
const plotMinW = "500px";
|
const plotMinW = "500px";
|
||||||
if (!data || isLoading) return <Spinner />;
|
if (!data || isLoading) return <Spinner />;
|
||||||
|
|
Ładowanie…
Reference in New Issue