Simplify conditional rendering of Sun component based on theme

This commit is contained in:
Vishnu 2025-04-01 12:08:54 +05:30
parent a682d3dd1e
commit b5833696a5
1 changed files with 1 additions and 5 deletions

View File

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