33 AgentListQuery ,
44 AgentListQuery$data ,
55} from '../__generated__/AgentListQuery.graphql' ;
6- import { AgentSettingModalFragment$key } from '../__generated__/AgentSettingModalFragment.graphql' ;
76import {
87 convertToBinaryUnit ,
98 convertToDecimalUnit ,
@@ -16,7 +15,7 @@ import { useBAIPaginationOptionStateOnSearchParamLegacy } from '../hooks/reactPa
1615import { useHiddenColumnKeysSetting } from '../hooks/useHiddenColumnKeysSetting' ;
1716import { useThemeMode } from '../hooks/useThemeMode' ;
1817import AgentDetailModal from './AgentDetailModal' ;
19- import AgentSettingModal from './AgentSettingModal ' ;
18+ import AgentSettingModalLegacy from './AgentSettingModalLegacy ' ;
2019import BAIIntervalView from './BAIIntervalView' ;
2120import BAIProgressWithLabel from './BAIProgressWithLabel' ;
2221import BAIRadioGroup from './BAIRadioGroup' ;
@@ -47,6 +46,7 @@ import _ from 'lodash';
4746import React , { useState , useDeferredValue } from 'react' ;
4847import { useTranslation } from 'react-i18next' ;
4948import { graphql , useLazyLoadQuery } from 'react-relay' ;
49+ import { AgentSettingModalLegacyFragment$key } from 'src/__generated__/AgentSettingModalLegacyFragment.graphql' ;
5050import { StringParam , useQueryParams , withDefault } from 'use-query-params' ;
5151
5252type Agent = NonNullable < AgentListQuery$data [ 'agent_list' ] > [ 'items' ] [ number ] ;
@@ -71,7 +71,7 @@ const AgentList: React.FC<AgentListProps> = ({
7171 const [ currentAgentInfo , setCurrentAgentInfo ] =
7272 useState < AgentDetailModalFragment$key | null > ( ) ;
7373 const [ currentSettingAgent , setCurrentSettingAgent ] =
74- useState < AgentSettingModalFragment $key | null > ( ) ;
74+ useState < AgentSettingModalLegacyFragment $key | null > ( ) ;
7575 const [ visibleColumnSettingModal , { toggle : toggleColumnSettingModal } ] =
7676 useToggle ( ) ;
7777 const baiClient = useSuspendedBackendaiClient ( ) ;
@@ -146,7 +146,7 @@ const AgentList: React.FC<AgentListProps> = ({
146146 scaling_group
147147 schedulable
148148 ...AgentDetailModalFragment
149- ...AgentSettingModalFragment
149+ ...AgentSettingModalLegacyFragment
150150 }
151151 total_count
152152 }
@@ -960,8 +960,8 @@ const AgentList: React.FC<AgentListProps> = ({
960960 open = { ! ! currentAgentInfo }
961961 onRequestClose = { ( ) => setCurrentAgentInfo ( null ) }
962962 />
963- < AgentSettingModal
964- agentSettingModalFrgmt = { currentSettingAgent }
963+ < AgentSettingModalLegacy
964+ agentSettingModalLegacyFrgmt = { currentSettingAgent }
965965 open = { ! ! currentSettingAgent }
966966 onRequestClose = { ( success ) => {
967967 if ( success ) {
0 commit comments