mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Clean name
This commit is contained in:
parent
1a3b9154a1
commit
51ea8fe4a3
@ -8,7 +8,7 @@ export const FurniChooserWidgetView: FC<{}> = props =>
|
|||||||
{
|
{
|
||||||
const [ isVisible, setIsVisible ] = useState(false);
|
const [ isVisible, setIsVisible ] = useState(false);
|
||||||
const [ items, setItems ] = useState<RoomObjectItem[]>(null);
|
const [ items, setItems ] = useState<RoomObjectItem[]>(null);
|
||||||
const [ isModerator, setIsmModerator ] = useState<boolean>(false);
|
const [ isModerator, setIsModerator ] = useState<boolean>(false);
|
||||||
const [ refreshTimeout, setRefreshTimeout ] = useState<ReturnType<typeof setTimeout>>(null);
|
const [ refreshTimeout, setRefreshTimeout ] = useState<ReturnType<typeof setTimeout>>(null);
|
||||||
const { eventDispatcher = null, widgetHandler = null } = useRoomContext();
|
const { eventDispatcher = null, widgetHandler = null } = useRoomContext();
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ export const FurniChooserWidgetView: FC<{}> = props =>
|
|||||||
BatchUpdates(() =>
|
BatchUpdates(() =>
|
||||||
{
|
{
|
||||||
setItems(event.items);
|
setItems(event.items);
|
||||||
setIsmModerator(event.isModerator);
|
setIsModerator(event.isModerator);
|
||||||
setIsVisible(true);
|
setIsVisible(true);
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
Loading…
Reference in New Issue
Block a user