reduce roomState component scope

This commit is contained in:
neri 2019-12-13 13:41:09 +01:00
parent 8248479cce
commit f3aad4a58d
2 changed files with 5 additions and 8 deletions

View File

@ -19,11 +19,8 @@ export default () => {
}, []) }, [])
return ( return (
<h2> <span style={{ color: roomStateData[openState].color }}>
Raumstatus:{" "} {roomStateData[openState].text}
<span style={{ color: roomStateData[openState].color }}> </span>
{roomStateData[openState].text}
</span>
</h2>
) )
} }

View File

@ -2,9 +2,9 @@
path: "/treff" path: "/treff"
title: "Zeiten & Location" title: "Zeiten & Location"
--- ---
import RoomState from "../components/roomState" import RoomState from "../components/roomState.js"
<RoomState/> ## Raumstatus: <RoomState/>
## Treff ## Treff