@@ -7,26 +7,30 @@ import { Button, Flex } from '@strapi/design-system';
77
88import { Check } from '@strapi/icons' ;
99import { Form , Layouts , Page , useAuth } from '@strapi/strapi/admin' ;
10+ import * as pluginPkg from '../../../../package.json' ;
1011
12+ import { Badge , Typography } from '@strapi/design-system' ;
1113import { FormChangeEvent , FormItemErrorSchema } from '../../types' ;
1214import { getTrad } from '../../utils/getTranslation' ;
1315import pluginPermissions from '../../utils/permissions' ;
16+ import { AdditionalSettingsPanel } from './components/AdditionalSettingsPanel' ;
17+ import { CustomFieldsPanel } from './components/CustomFieldsPanel' ;
18+ import { GeneralSettingsPanel } from './components/GeneralSettingsPanel' ;
19+ import { RestartPanel } from './components/RestartPanel' ;
20+ import { RestorePanel } from './components/RestorePanel' ;
21+ import { SettingsContext } from './context' ;
1422import {
1523 useConfig ,
1624 useContentTypes ,
25+ useInitialConfig ,
1726 useRestart ,
1827 useRestoreConfig ,
1928 useSaveConfig ,
20- useInitialConfig ,
2129} from './hooks' ;
22- import { RestartStatus } from './types' ;
23- import { RestorePanel } from './components/RestorePanel' ;
24- import { RestartPanel } from './components/RestartPanel' ;
25- import { AdditionalSettingsPanel } from './components/AdditionalSettingsPanel' ;
26- import { GeneralSettingsPanel } from './components/GeneralSettingsPanel' ;
27- import { CustomFieldsPanel } from './components/CustomFieldsPanel' ;
28- import { SettingsContext } from './context' ;
2930import { uiFormSchema , UiFormSchema } from './schemas' ;
31+ import { RestartStatus } from './types' ;
32+
33+ const pluginVersion = pluginPkg . version ;
3034
3135const queryClient = new QueryClient ( ) ;
3236
@@ -143,7 +147,16 @@ const Inner = () => {
143147 < Page . Title children = { formatMessage ( getTrad ( 'pages.settings.header.title' ) ) } />
144148 < Layouts . Header
145149 title = { formatMessage ( getTrad ( 'pages.settings.header.title' ) ) }
146- subtitle = { formatMessage ( getTrad ( 'pages.settings.header.description' ) ) }
150+ subtitle = {
151+ < Flex direction = "row" gap = { 3 } alignItems = "center" justifyContent = "space-between" >
152+ < Typography variant = "epsilon" textColor = "neutral600" tag = "p" >
153+ { formatMessage ( getTrad ( 'pages.settings.header.description' ) ) }
154+ </ Typography >
155+ < Badge color = "neutral" minWidth = "fit-content" >
156+ < span style = { { textTransform : 'none' } } > v{ pluginVersion } </ span >
157+ </ Badge >
158+ </ Flex >
159+ }
147160 primaryAction = {
148161 hasSettingsReadPermissions ? (
149162 < Button
0 commit comments