mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 06:19:03 +08:00
* create a visual loading state with header * updates loading with WidgetHeader component * chore: onview and ondelete is updated Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
972bf94dd0
commit
d1cc29e118
@ -246,7 +246,18 @@ function GridCardGraph({
|
|||||||
(state.loading === true || state.payload === undefined) &&
|
(state.loading === true || state.payload === undefined) &&
|
||||||
!isEmptyLayout
|
!isEmptyLayout
|
||||||
) {
|
) {
|
||||||
return <Spinner height="20vh" tip="Loading..." />;
|
return (
|
||||||
|
<>
|
||||||
|
<WidgetHeader
|
||||||
|
parentHover={hovered}
|
||||||
|
title={widget?.title}
|
||||||
|
widget={widget}
|
||||||
|
onView={handleOnView}
|
||||||
|
onDelete={handleOnDelete}
|
||||||
|
/>
|
||||||
|
<Spinner height="20vh" tip="Loading..." />
|
||||||
|
</>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user