Skip to content

Commit

Permalink
Fix <front> : now compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mescande committed Oct 7, 2022
1 parent e774aa0 commit f5cfe23
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
5 changes: 2 additions & 3 deletions backend/shared/interfaces/Message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ export default interface Message {
author: string,
time: Date,
content: string,
roomId: number
}

roomId: number,
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const ChannelUserMenu = ({
e.preventDefault();
setAnchorPoint({ x: e.clientX, y: e.clientY });
toggleMenu(true);
socket?.emit(ROUTES_BASE.USER);
}}
className={`grid grid-cols-2 grid-flow-col mx-2 cursor-pointer hover:bg-gray-600
${pointedUser.pongUsername.startsWith(inputFilter) ? "block" : "hidden"}
Expand Down Expand Up @@ -91,7 +90,6 @@ const ChannelUserMenu = ({
/>
<Watch menuSettings={menuSettings} />
<AddFriendButton
menuSettings={menuSettings}
socket={socket}
user={pointedUser}
/>
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/FriendList/DropDownFriendList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ const DropDownFriendList: React.FC<DropDownFriendListProps> = ({
menuSettings={{
challenge: aStatusList.status === Status.ONLINE,
watch: aStatusList.status === Status.PLAYING,
privileges: Privileges.MEMBER,
friend: true,
}}
/>
);
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/UserInList/MenuSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export type MenuSettingsType = {
challenge:boolean,
watch:boolean,
privileges:number,
friend:boolean,
}

0 comments on commit f5cfe23

Please sign in to comment.