ConsoleJanitor: Fix outdated settings margin
This commit is contained in:
		
							parent
							
								
									aca30bcb9a
								
							
						
					
					
						commit
						8807564053
					
				
					 2 changed files with 7 additions and 10 deletions
				
			
		|  | @ -36,7 +36,7 @@ export function resolveError(isValidResult: boolean | string) { | |||
| interface SettingsSectionProps extends PropsWithChildren { | ||||
|     name: string; | ||||
|     description: string; | ||||
|     error: string | null; | ||||
|     error?: string | null; | ||||
|     inlineSetting?: boolean; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -6,11 +6,10 @@ | |||
| 
 | ||||
| import { definePluginSettings } from "@api/Settings"; | ||||
| import ErrorBoundary from "@components/ErrorBoundary"; | ||||
| import { Flex } from "@components/Flex"; | ||||
| import { SettingsSection } from "@components/settings/tabs/plugins/components/Common"; | ||||
| import { Devs } from "@utils/constants"; | ||||
| import { Margins } from "@utils/margins"; | ||||
| import definePlugin, { defineDefault, OptionType, StartAt } from "@utils/types"; | ||||
| import { Checkbox, Forms, Text } from "@webpack/common"; | ||||
| import { Checkbox, Text } from "@webpack/common"; | ||||
| 
 | ||||
| const Noop = () => { }; | ||||
| const NoopLogger = { | ||||
|  | @ -58,15 +57,13 @@ function AllowLevelSetting({ settingKey }: AllowLevelSettingProps) { | |||
| 
 | ||||
| const AllowLevelSettings = ErrorBoundary.wrap(() => { | ||||
|     return ( | ||||
|         <Forms.FormSection> | ||||
|             <Forms.FormTitle tag="h3">Filter List</Forms.FormTitle> | ||||
|             <Forms.FormText className={Margins.bottom8}>Always allow loggers of these types</Forms.FormText> | ||||
|             <Flex flexDirection="row"> | ||||
|         <SettingsSection name="Filter List" description="Always allow loggers of these types"> | ||||
|             <div style={{ display: "flex", flexDirection: "row" }}> | ||||
|                 {Object.keys(settings.store.allowLevel).map(key => ( | ||||
|                     <AllowLevelSetting key={key} settingKey={key as keyof AllowLevels} /> | ||||
|                 ))} | ||||
|             </Flex> | ||||
|         </Forms.FormSection> | ||||
|             </div> | ||||
|         </SettingsSection> | ||||
|     ); | ||||
| }); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue