@@ -15,7 +15,7 @@ import { SCRIPTED_CHECK_FIELDS,ScriptedCheckContent } from '../layouts/ScriptedC
1515import { TCP_REQUEST_OPTIONS_FIELDS , TcpCheckContent } from '../layouts/TcpCheckContent' ;
1616import { TRACEROUTE_CHECK_FIELDS , TracerouteCheckContent } from '../layouts/TracerouteCheckContent' ;
1717
18- const defaultCheckFields = [ 'job' , 'target' ] ;
18+ const DEFAULT_CHECK_FIELDS = [ 'job' , 'target' ] ;
1919
2020function getCheckTypeFields ( checkType : CheckType ) {
2121 switch ( checkType ) {
@@ -36,11 +36,11 @@ function getCheckTypeFields(checkType: CheckType) {
3636 case CheckType . Browser :
3737 return BROWSER_CHECK_FIELDS ;
3838 default :
39- return defaultCheckFields ;
39+ return DEFAULT_CHECK_FIELDS ;
4040 }
4141}
4242
43- const checkTypeLayoutMap : Record < CheckType , ComponentType > = {
43+ const CHECK_TYPE_LAYOUT_MAP : Record < CheckType , ComponentType > = {
4444 /* Protocol checks (blackbox exporter)*/
4545 [ CheckType . Http ] : HttpCheckContent ,
4646 [ CheckType . Ping ] : PingCheckContent ,
@@ -69,7 +69,7 @@ function getNavLabel(checkType: CheckType) {
6969export function CheckSection ( ) {
7070 const { checkType } = useChecksterContext ( ) ;
7171
72- const SectionComponent = checkTypeLayoutMap [ checkType ] ?? null ;
72+ const SectionComponent = CHECK_TYPE_LAYOUT_MAP [ checkType ] ?? null ;
7373 const fields = getCheckTypeFields ( checkType ) ;
7474
7575 return (
0 commit comments