From b5830414b01703828fef15aa750fa837d2f1fabf Mon Sep 17 00:00:00 2001 From: dm1sh Date: Sun, 5 Sep 2021 14:34:18 +0300 Subject: [PATCH] Sorry for my english --- apps/front/src/components/RoomList.tsx | 8 ++++---- apps/front/src/types/ui.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/front/src/components/RoomList.tsx b/apps/front/src/components/RoomList.tsx index 156803f..2f5bde0 100644 --- a/apps/front/src/components/RoomList.tsx +++ b/apps/front/src/components/RoomList.tsx @@ -43,7 +43,7 @@ const useStyles = makeStyles((theme) => ({ free: { background: theme.palette.success.main, }, - busy: { + occupied: { background: theme.palette.grey[500], }, })); @@ -79,13 +79,13 @@ export const RoomList = () => { > - + {state.map.map(({ title }, index) => { if (filter === FilterState.FREE && !state.char[index].free) return ""; - else if (filter === FilterState.BUSY && state.char[index].free) + else if (filter === FilterState.OCCUPIED && state.char[index].free) return ""; else return ( @@ -93,7 +93,7 @@ export const RoomList = () => {
diff --git a/apps/front/src/types/ui.ts b/apps/front/src/types/ui.ts index 20739e6..a4ff123 100644 --- a/apps/front/src/types/ui.ts +++ b/apps/front/src/types/ui.ts @@ -1,5 +1,5 @@ export enum FilterState { ALL, FREE, - BUSY, + OCCUPIED, }