@@ -6,7 +6,7 @@ import { getRemoteConfig, fetchAndActivate, getAll, setCustomSignals, getString
66import { getInstallations } from "firebase/installations" ;
77import { getAnalytics , logEvent } from "firebase/analytics" ;
88
9- function Screen ( { isLoading, welcomeMessage } = { isLoading : false , welcomeMessage : "" } ) {
9+ function Screen ( { isLoading, summary } = { isLoading : false , summary : "" } ) {
1010 if ( isLoading ) {
1111 return ( < div > Loading...</ div > )
1212 }
@@ -17,9 +17,8 @@ function Screen({isLoading, welcomeMessage} = {isLoading: false, welcomeMessage:
1717 </ div >
1818 < br > </ br >
1919 < div >
20- { welcomeMessage }
20+ Blurred Summary: { summary }
2121 < br > </ br >
22- < button > Fetch Config</ button >
2322 </ div >
2423 </ div >
2524 )
@@ -53,15 +52,15 @@ export default function Home() {
5352 fetchAndActivate ( config ) . then ( success => {
5453 console . log ( success , getAll ( config ) ) ;
5554 setIsLoading ( false ) ;
56- setWelcomeMessage ( getString ( config , 'welcome_message ' ) ) ;
55+ setBlurredSummary ( getString ( config , 'show_blurred_summary ' ) ) ;
5756 logEvent ( analytics , "test-event" ) ;
5857 } ) ;
5958 } ) ;
6059
6160 const [ isLoading , setIsLoading ] = useState ( true ) ;
62- const [ welcomeMessage , setWelcomeMessage ] = useState ( "welcome " ) ;
61+ const [ showBlurredSummary , setBlurredSummary ] = useState ( "blurredSummary " ) ;
6362
6463 return (
65- < Screen isLoading = { isLoading } welcomeMessage = { welcomeMessage } > </ Screen >
64+ < Screen isLoading = { isLoading } summary = { showBlurredSummary } > </ Screen >
6665 ) ;
6766}
0 commit comments