Skip to content

Commit

Permalink
Removed not needed new drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
villepynttari committed Jun 28, 2024
1 parent 6c84121 commit 98c791a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 129 deletions.
9 changes: 5 additions & 4 deletions frontend/src/components/BookingDrawer/BookingDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import AddIcon from '@mui/icons-material/Add';
import RemoveIcon from '@mui/icons-material/Remove';
import { DateTime } from 'luxon';
import { styled } from '@mui/material/styles';
import { DrawerContent } from '../SwipeableEdgeDrawer/SwipeableEdgeDrawer';
import SwipeableEdgeDrawer, {
DrawerContent
} from '../SwipeableEdgeDrawer/SwipeableEdgeDrawer';
import { Room } from '../../types';
import { getTimeLeft, getTimeLeftMinutes2 } from '../util/TimeLeft';
import { theme } from '../../theme';
import BottomDrawer from '../BottomDrawer/BottomDrawer';

const MIN_DURATION = 15;

Expand Down Expand Up @@ -287,7 +288,7 @@ const BookingDrawer = (props: Props) => {
};

return (
<BottomDrawer
<SwipeableEdgeDrawer
headerTitle={getName(room)}
iconLeft={'AccessTime'}
iconRight={'Close'}
Expand Down Expand Up @@ -380,7 +381,7 @@ const BookingDrawer = (props: Props) => {
</Row>
</DrawerContent>
</Box>
</BottomDrawer>
</SwipeableEdgeDrawer>
);
};

Expand Down
125 changes: 0 additions & 125 deletions frontend/src/components/BottomDrawer/BottomDrawer.tsx

This file was deleted.

0 comments on commit 98c791a

Please sign in to comment.