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 (
<h2>
Raumstatus:{" "}
<span style={{ color: roomStateData[openState].color }}>
{roomStateData[openState].text}
</span>
</h2>
<span style={{ color: roomStateData[openState].color }}>
{roomStateData[openState].text}
</span>
)
}

View File

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