reduce roomState component scope
This commit is contained in:
parent
8248479cce
commit
f3aad4a58d
|
@ -19,11 +19,8 @@ export default () => {
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<h2>
|
|
||||||
Raumstatus:{" "}
|
|
||||||
<span style={{ color: roomStateData[openState].color }}>
|
<span style={{ color: roomStateData[openState].color }}>
|
||||||
{roomStateData[openState].text}
|
{roomStateData[openState].text}
|
||||||
</span>
|
</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