@@ -9,6 +9,7 @@ import { fetchPublicChecks, fetchUserDefinedChecks } from "@/api/check";
99
1010import type { EligibilityCheckListMode } from "./EligibilityCheckListView" ;
1111import type { EligibilityCheck , ParameterValues } from "@/types" ;
12+ import Tooltip from "@/components/shared/Tooltip" ;
1213
1314const ConfigureBenefit = ( {
1415 screenerId,
@@ -26,7 +27,7 @@ const ConfigureBenefit = ({
2627 createSignal < EligibilityCheckListMode > ( "public" ) ;
2728 const [ publicChecks ] = createResource < EligibilityCheck [ ] > ( fetchPublicChecks ) ;
2829 const [ userDefinedChecks ] = createResource < EligibilityCheck [ ] > ( ( ) =>
29- fetchUserDefinedChecks ( false )
30+ fetchUserDefinedChecks ( false ) ,
3031 ) ;
3132
3233 const onRemoveEligibilityCheck = ( checkId : string ) => {
@@ -42,9 +43,25 @@ const ConfigureBenefit = ({
4243 < Show when = { benefit ( ) . id !== undefined && ! initialLoadStatus . loading ( ) } >
4344 < div class = "p-5" >
4445 < div class = "flex mb-4" >
45- < div class = "text-3xl font-bold tracking-wide" >
46- Configure Benefit:{ " " }
47- { benefit ( ) ? benefit ( ) . name : "No Benefit Found" }
46+ < div class = "flex flex-row gap-2 items-baseline" >
47+ < div class = "text-3xl font-bold tracking-wide" >
48+ Configure Benefit:{ " " }
49+ { benefit ( ) ? benefit ( ) . name : "No Benefit Found" }
50+ </ div >
51+ < Tooltip >
52+ < p >
53+ The Configure Benefit page is where you define the rules that
54+ determine whether a user qualifies for a specific benefit.
55+ </ p >
56+ < p >
57+ < a
58+ href = "https://bdt-docs.web.app/user-guide/#4-configuring-a-benefit"
59+ target = "_blank"
60+ >
61+ Read about configuring a benefit in the docs
62+ </ a >
63+ </ p >
64+ </ Tooltip >
4865 </ div >
4966 < div class = "ml-auto" >
5067 < div
@@ -92,11 +109,11 @@ const ConfigureBenefit = ({
92109 onRemoveEligibilityCheck ( checkConfig . checkId )
93110 }
94111 updateCheckConfigParams = { (
95- newCheckData : ParameterValues
112+ newCheckData : ParameterValues ,
96113 ) => {
97114 actions . updateCheckConfigParams (
98115 checkConfig . checkId ,
99- newCheckData
116+ newCheckData ,
100117 ) ;
101118 } }
102119 />
0 commit comments