File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
frontend/src/components/App/PluginSettings Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -268,22 +268,33 @@ export function PluginSettingsPure(props: PluginSettingsPureProps) {
268268 header : t ( 'translation|Type' ) ,
269269 accessorFn : ( plugin : PluginInfo ) => plugin . type || 'unknown' ,
270270 Cell : ( { row : { original : plugin } } : { row : MRT_Row < PluginInfo > } ) => {
271- const typeLabels : Record < string , { label : string ; color : any } > = {
271+ const typeLabels : Record < string , { label : string ; color : any ; sx ?: any } > = {
272272 development : {
273273 label : t ( 'translation|Development' ) ,
274274 color : 'primary' ,
275275 } ,
276276 user : {
277277 label : t ( 'translation|User-installed' ) ,
278278 color : 'info' ,
279+ sx : {
280+ backgroundColor : '#015493' ,
281+ color : '#ffffff' ,
282+ } ,
279283 } ,
280284 shipped : {
281285 label : t ( 'translation|Shipped' ) ,
282286 color : 'default' ,
283287 } ,
284288 } ;
285289 const typeInfo = typeLabels [ plugin . type || 'shipped' ] ;
286- return < Chip label = { typeInfo . label } size = "small" color = { typeInfo . color } /> ;
290+ return (
291+ < Chip
292+ label = { typeInfo . label }
293+ size = "small"
294+ color = { typeInfo . color }
295+ sx = { typeInfo . sx }
296+ />
297+ ) ;
287298 } ,
288299 } ,
289300 {
You can’t perform that action at this time.
0 commit comments