Skip to content

Commit 383553a

Browse files
author
Athira M
committed
Blurred summary
1 parent 54f19c5 commit 383553a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

web-exp-bugbash/my-app/src/app/page.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getRemoteConfig, fetchAndActivate, getAll, setCustomSignals, getString
66
import { getInstallations } from "firebase/installations";
77
import { 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

Comments
 (0)