Simplify conditional rendering of Sun component based on theme
This commit is contained in:
@@ -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 />
|
||||||
|
|||||||
Reference in New Issue
Block a user