mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
fix minor mistake
This commit is contained in:
parent
9736919d1a
commit
22553799d4
1 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,14 @@ const RoomViewHeader = ({ room }: RoomViewHeaderProps) => {
|
||||||
? roomMeta.lazy_load_summary.heroes[0] : room.roomID
|
? roomMeta.lazy_load_summary.heroes[0] : room.roomID
|
||||||
const mainScreen = use(MainScreenContext)
|
const mainScreen = use(MainScreenContext)
|
||||||
const openModal = use(ModalContext)
|
const openModal = use(ModalContext)
|
||||||
|
const openStateViewer = useCallback(() => {
|
||||||
|
openModal({
|
||||||
|
dimmed: true,
|
||||||
|
boxed: true,
|
||||||
|
innerBoxClass: "state-view",
|
||||||
|
content: <StateViewer room={room} />,
|
||||||
|
})
|
||||||
|
}, [room, openModal])
|
||||||
const openSettings = useCallback(() => {
|
const openSettings = useCallback(() => {
|
||||||
openModal({
|
openModal({
|
||||||
dimmed: true,
|
dimmed: true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue