Skip to content

Commit

Permalink
fix drone
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBouzinFiligran committed Jan 17, 2025
1 parent 44e3e58 commit 248dc19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -74,7 +75,7 @@ const StixCoreObjectHistory = ({ stixCoreObjectId, withoutRelations }: StixCoreO
orderMode: 'desc',
search: entitySearchTerm,
}}
render={({ props }) => {
render={({ props }: { props: StixCoreObjectHistoryLines_data$data }) => {
if (props) {
return (
<StixCoreObjectHistoryLines
Expand All @@ -84,7 +85,7 @@ const StixCoreObjectHistory = ({ stixCoreObjectId, withoutRelations }: StixCoreO
/>
);
}
return <Loader variant="inElement" />;
return <Loader variant={LoaderVariant.inElement} />;
}}
/>
</Grid>
Expand Down Expand Up @@ -151,7 +152,7 @@ const StixCoreObjectHistory = ({ stixCoreObjectId, withoutRelations }: StixCoreO
orderMode: 'desc',
search: relationsSearchTerm,
}}
render={({ props }) => {
render={({ props }: { props: StixCoreObjectHistoryLines_data$data }) => {
if (props) {
return (
<StixCoreObjectHistoryLines
Expand All @@ -161,7 +162,7 @@ const StixCoreObjectHistory = ({ stixCoreObjectId, withoutRelations }: StixCoreO
/>
);
}
return <Loader variant="inElement" />;
return <Loader variant={LoaderVariant.inElement} />;
}}
/>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -43,7 +44,7 @@ const StixCoreObjectLatestHistory = ({ stixCoreObjectId }: StixCoreObjectLatestH
orderBy: 'timestamp',
orderMode: 'desc',
}}
render={({ props }) => {
render={({ props }: { props: StixCoreObjectHistoryLines_data$data }) => {
if (props) {
return (
<StixCoreObjectHistoryLines
Expand Down

0 comments on commit 248dc19

Please sign in to comment.