chore: replace components with core-ui, upgrade eslint
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import { modelsExpandKeysAtom, modelsSessionAtom } from '@/atoms/models';
|
||||
import IconFont from '@/components/icon-font';
|
||||
import { FilterBar } from '@/components/page-tools';
|
||||
import { PageAction } from '@/config';
|
||||
import useBodyScroll from '@/hooks/use-body-scroll';
|
||||
import useTableFetch from '@/hooks/use-table-fetch';
|
||||
import { ScrollerContext } from '@/pages/_components/infinite-scroller/use-scroller-context';
|
||||
import { IS_FIRST_LOGIN, writeState } from '@/utils/localstore/index';
|
||||
import { SearchOutlined } from '@ant-design/icons';
|
||||
import {
|
||||
FilterBar,
|
||||
IconFont,
|
||||
InfiniteScrollerProvider
|
||||
} from '@gpustack/core-ui';
|
||||
import { useIntl, useNavigate } from '@umijs/max';
|
||||
import { message } from 'antd';
|
||||
import { useAtom } from 'jotai';
|
||||
@@ -143,7 +145,7 @@ const Catalog: React.FC = () => {
|
||||
buttonIcon={<SearchOutlined />}
|
||||
widths={{ input: 230, select: 200 }}
|
||||
></FilterBar>
|
||||
<ScrollerContext.Provider
|
||||
<InfiniteScrollerProvider
|
||||
value={{
|
||||
total: dataSource.totalPage,
|
||||
current: queryParams.page,
|
||||
@@ -171,7 +173,7 @@ const Catalog: React.FC = () => {
|
||||
title={intl.formatMessage({ id: 'noresult.catalog.title' })}
|
||||
subTitle={intl.formatMessage({ id: 'noresult.catalog.subTitle' })}
|
||||
></NoResult>
|
||||
</ScrollerContext.Provider>
|
||||
</InfiniteScrollerProvider>
|
||||
<DelopyBuiltInModal
|
||||
open={openDeployModal.show}
|
||||
action={PageAction.CREATE}
|
||||
|
||||
Reference in New Issue
Block a user