Solstice web interface.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
564 B

import { FC } from "react";
import { useDispatch } from "react-redux";
import SearchableList from "components/SearchableList";
import RoomListEntry from "modules/room/RoomListEntry";
import { RoomSliceState, roomGetAll } from "modules/room/slice";
const SearchableRoomList = SearchableList(RoomListEntry);
const RoomList: FC<RoomSliceState> = ({ rooms }) => {
const dispatch = useDispatch();
const refresh = () => {
dispatch(roomGetAll());
};
return <SearchableRoomList id="room-list" map={rooms} refresh={refresh} />;
};
export default RoomList;