File tree Expand file tree Collapse file tree 5 files changed +19
-5
lines changed
Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,17 @@ update_frontend()
3030 echo " REACT_APP_ENABLE_RUM=true" >> .env.production
3131 echo " REACT_APP_FARO_ENDPOINT=https://tanfdata.acf.hhs.gov/collect" >> .env.production
3232 echo " REACT_APP_VERSION=v3.8.4" >> .env.production
33+ # PIA
34+ echo " REACT_APP_SHOW_PIA=false" >> .env.production
35+ # Nginx
3336 echo " BACK_END=" >> .env.production
3437 elif [ " $CF_SPACE " = " tanf-staging" ]; then
3538 echo " REACT_APP_BACKEND_URL=https://$CGHOSTNAME_FRONTEND .acf.hhs.gov/v1" >> .env.development
3639 echo " REACT_APP_FRONTEND_URL=https://$CGHOSTNAME_FRONTEND .acf.hhs.gov" >> .env.development
3740 echo " REACT_APP_BACKEND_HOST=https://$CGHOSTNAME_FRONTEND .acf.hhs.gov" >> .env.development
3841 echo " REACT_APP_CF_SPACE=$CF_SPACE " >> .env.development
42+ # PIA
43+ echo " REACT_APP_SHOW_PIA=false" >> .env.development
3944
4045 cf set-env " $CGHOSTNAME_FRONTEND " ALLOWED_ORIGIN " https://$CGHOSTNAME_FRONTEND .acf.hhs.gov"
4146 cf set-env " $CGHOSTNAME_FRONTEND " CONNECT_SRC ' *.acf.hhs.gov'
Original file line number Diff line number Diff line change @@ -55,3 +55,6 @@ REACT_APP_FARO_ENDPOINT="http://localhost:12346/collect"
5555REACT_APP_VERSION = " v3.8.4"
5656
5757REACT_APP_KNOWLEDGE_CENTER_LINK = " https://tdp-project-updates.app.cloud.gov/knowledge-center"
58+
59+ # PIA
60+ REACT_APP_SHOW_PIA = true
Original file line number Diff line number Diff line change @@ -37,3 +37,6 @@ REACT_APP_FARO_ENDPOINT="http://localhost:12346/collect"
3737REACT_APP_VERSION = " v3.8.4"
3838
3939REACT_APP_KNOWLEDGE_CENTER_LINK = " https://tdp-project-updates.app.cloud.gov/knowledge-center"
40+
41+ # PIA
42+ REACT_APP_SHOW_PIA = true
Original file line number Diff line number Diff line change @@ -33,3 +33,6 @@ REACT_APP_FARO_ENDPOINT="http://localhost:12346/collect"
3333REACT_APP_VERSION = " v3.8.4"
3434
3535REACT_APP_KNOWLEDGE_CENTER_LINK = " https://tdp-project-updates.app.cloud.gov/knowledge-center"
36+
37+ # PIA
38+ REACT_APP_SHOW_PIA = true
Original file line number Diff line number Diff line change @@ -85,10 +85,9 @@ function ReportsContent() {
8585 const radio_options = [
8686 { label : 'TANF' , value : 'tanf' } ,
8787 ...( fileTypeStt ?. ssp ? [ { label : 'SSP-MOE' , value : 'ssp-moe' } ] : [ ] ) ,
88- {
89- label : 'Program Integrity Audit' ,
90- value : 'program-integrity-audit' ,
91- } ,
88+ ...( process . env . REACT_APP_SHOW_PIA === 'true'
89+ ? [ { label : 'Program Integrity Audit' , value : 'program-integrity-audit' } ]
90+ : [ ] ) ,
9291 ]
9392
9493 return (
@@ -135,7 +134,8 @@ function ReportsContent() {
135134 </ div >
136135 </ div >
137136
138- { fileTypeInputValue === 'program-integrity-audit' ? (
137+ { fileTypeInputValue === 'program-integrity-audit' &&
138+ process . env . REACT_APP_SHOW_PIA === 'true' ? (
139139 < ProgramIntegrityAuditReports
140140 stt = { stt ? stt : fileTypeStt }
141141 isRegionalStaff = { isRegionalStaff }
You can’t perform that action at this time.
0 commit comments