mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -07:00
refactor typescript wiring
This commit is contained in:
parent
cea9ae62d8
commit
c62c336a11
286 changed files with 2999 additions and 3053 deletions
|
|
@ -11,8 +11,8 @@ import TableHead from '@mui/material/TableHead';
|
|||
import TableRow from '@mui/material/TableRow';
|
||||
|
||||
|
||||
import { RoomsService } from 'api';
|
||||
import { RouteEnum } from 'types';
|
||||
import { RoomsService } from '@app/api';
|
||||
import { App } from '@app/types';
|
||||
|
||||
import './Rooms.css';
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ const Rooms = ({ rooms, joinedRooms }) => {
|
|||
|
||||
function onClick(roomId) {
|
||||
if (_.find(joinedRooms, room => room.roomId === roomId)) {
|
||||
navigate(generatePath(RouteEnum.ROOM, { roomId }));
|
||||
navigate(generatePath(App.RouteEnum.ROOM, { roomId }));
|
||||
} else {
|
||||
RoomsService.joinRoom(roomId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue