Simplify conditional rendering of Sun component based on theme
This commit is contained in:
parent
a682d3dd1e
commit
b5833696a5
|
@ -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 />
|
||||
|
|
Loading…
Reference in New Issue