Skip to content

Commit 2905a64

Browse files
refactor: simplify Page component to conditionally render weather widget status
1 parent b241ca0 commit 2905a64

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/app/page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@ import WeatherClient from "./components/WeatherClient";
44
export default async function Page() {
55
const isWeatherWidgetEnabled = await weatherWidgetFlag();
66

7-
return (
8-
<div>
9-
<h1>Welcome to Next.js + Playwright</h1>
10-
<WeatherClient isEnabled={isWeatherWidgetEnabled} />
11-
</div>
12-
);
7+
return <div>{isWeatherWidgetEnabled ? "Flag is on" : "Flag is off"}</div>;
138
}

0 commit comments

Comments
 (0)