mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-16 20:51:28 +08:00

* feat: add the export panel to the traces explorer * feat: onExport dashboard widget is updated * chore: made common hook useDashboard --------- Co-authored-by: Palash Gupta <palashgdev@gmail.com>
15 lines
476 B
TypeScript
15 lines
476 B
TypeScript
import update from 'api/dashboard/update';
|
|
import { useMutation, UseMutationResult } from 'react-query';
|
|
import { ErrorResponse, SuccessResponse } from 'types/api';
|
|
import { Dashboard } from 'types/api/dashboard/getAll';
|
|
import { Props } from 'types/api/dashboard/update';
|
|
|
|
export const useUpdateDashboard = (): UseUpdateDashboard => useMutation(update);
|
|
|
|
type UseUpdateDashboard = UseMutationResult<
|
|
SuccessResponse<Dashboard> | ErrorResponse,
|
|
unknown,
|
|
Props,
|
|
unknown
|
|
>;
|