refactor(layout): adopt header-slot page container across pages
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { PageContainerInner } from '@/pages/_components/page-box';
|
||||
import {
|
||||
HeaderLeft,
|
||||
usePageContentStyle
|
||||
} from '@/pages/_components/page-box';
|
||||
import { IconFont } from '@gpustack/core-ui';
|
||||
import { useIntl } from '@umijs/max';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
@@ -105,15 +108,11 @@ const LLModels: React.FC = () => {
|
||||
};
|
||||
}, [activeKey]);
|
||||
|
||||
usePageContentStyle({ padding: 0 });
|
||||
|
||||
return (
|
||||
<PageContainerInner
|
||||
leftContent={title}
|
||||
styles={{
|
||||
containerWrapper: {
|
||||
padding: 0
|
||||
}
|
||||
}}
|
||||
>
|
||||
<>
|
||||
<HeaderLeft>{title}</HeaderLeft>
|
||||
<DeploymentsContext.Provider
|
||||
value={{
|
||||
generateFormValues,
|
||||
@@ -138,7 +137,7 @@ const LLModels: React.FC = () => {
|
||||
activeKey={activeKey}
|
||||
></Tabs>
|
||||
</DeploymentsContext.Provider>
|
||||
</PageContainerInner>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user