Simplify conditional rendering of Sun component based on theme

This commit is contained in:
2025-04-01 12:08:54 +05:30
parent a682d3dd1e
commit b5833696a5

View File

@@ -50,11 +50,7 @@ export default function Scene() {
<ZoneCentreTarget /> <ZoneCentreTarget />
<Simulation /> <Simulation />
<PostProcessing /> <PostProcessing />
{savedTheme !== "dark" ? ( {savedTheme !== "dark" ? <Sun /> : <></>}
<Sun />
) : (
<Stars speed={1} count={500} radius={300} />
)}
<Shadows /> <Shadows />
<CamModelsGroup /> <CamModelsGroup />
<MqttEvents /> <MqttEvents />