From 248dc1959dfc5b4f2c16f1f0bac156ea05765d1f Mon Sep 17 00:00:00 2001 From: Valentin Bouzin Date: Fri, 17 Jan 2025 09:05:25 +0100 Subject: [PATCH] fix drone --- .../stix_core_objects/StixCoreObjectHistory.tsx | 11 ++++++----- .../stix_core_objects/StixCoreObjectLatestHistory.tsx | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectHistory.tsx b/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectHistory.tsx index 8f182ed54177..d7ab8c49b7c6 100644 --- a/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectHistory.tsx +++ b/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectHistory.tsx @@ -2,11 +2,12 @@ import React, { useState } from 'react'; import Typography from '@mui/material/Typography'; import Grid from '@mui/material/Grid'; import { useTheme } from '@mui/material/styles'; +import { StixCoreObjectHistoryLines_data$data } from '@components/common/stix_core_objects/__generated__/StixCoreObjectHistoryLines_data.graphql'; import { useFormatter } from '../../../../components/i18n'; import StixCoreObjectHistoryLines, { stixCoreObjectHistoryLinesQuery } from './StixCoreObjectHistoryLines'; import { QueryRenderer } from '../../../../relay/environment'; import SearchInput from '../../../../components/SearchInput'; -import Loader from '../../../../components/Loader'; +import Loader, { LoaderVariant } from '../../../../components/Loader'; type StixCoreObjectHistoryProps = { stixCoreObjectId: string; @@ -74,7 +75,7 @@ const StixCoreObjectHistory = ({ stixCoreObjectId, withoutRelations }: StixCoreO orderMode: 'desc', search: entitySearchTerm, }} - render={({ props }) => { + render={({ props }: { props: StixCoreObjectHistoryLines_data$data }) => { if (props) { return ( ); } - return ; + return ; }} /> @@ -151,7 +152,7 @@ const StixCoreObjectHistory = ({ stixCoreObjectId, withoutRelations }: StixCoreO orderMode: 'desc', search: relationsSearchTerm, }} - render={({ props }) => { + render={({ props }: { props: StixCoreObjectHistoryLines_data$data }) => { if (props) { return ( ); } - return ; + return ; }} /> diff --git a/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectLatestHistory.tsx b/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectLatestHistory.tsx index c97cd3ace8b3..89c792e23b14 100644 --- a/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectLatestHistory.tsx +++ b/opencti-platform/opencti-front/src/private/components/common/stix_core_objects/StixCoreObjectLatestHistory.tsx @@ -8,6 +8,7 @@ import Paper from '@mui/material/Paper'; import ListItemText from '@mui/material/ListItemText'; import Skeleton from '@mui/material/Skeleton'; import { useTheme } from '@mui/material/styles'; +import { StixCoreObjectHistoryLines_data$data } from '@components/common/stix_core_objects/__generated__/StixCoreObjectHistoryLines_data.graphql'; import { QueryRenderer } from '../../../../relay/environment'; import StixCoreObjectHistoryLines, { stixCoreObjectHistoryLinesQuery } from './StixCoreObjectHistoryLines'; import { useFormatter } from '../../../../components/i18n'; @@ -43,7 +44,7 @@ const StixCoreObjectLatestHistory = ({ stixCoreObjectId }: StixCoreObjectLatestH orderBy: 'timestamp', orderMode: 'desc', }} - render={({ props }) => { + render={({ props }: { props: StixCoreObjectHistoryLines_data$data }) => { if (props) { return (