reduce roomState component scope
This commit is contained in:
parent
8248479cce
commit
f3aad4a58d
|
@ -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>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue