mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 02:19:02 +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) &&
|
||||
!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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user