[#7] removed free/busy field
This commit is contained in:
@@ -121,7 +121,6 @@ describe("EventPopover", () => {
|
|||||||
expect(screen.getByLabelText("Repetition")).toBeInTheDocument();
|
expect(screen.getByLabelText("Repetition")).toBeInTheDocument();
|
||||||
expect(screen.getByLabelText("Alarm")).toBeInTheDocument();
|
expect(screen.getByLabelText("Alarm")).toBeInTheDocument();
|
||||||
expect(screen.getByLabelText("Visibility")).toBeInTheDocument();
|
expect(screen.getByLabelText("Visibility")).toBeInTheDocument();
|
||||||
expect(screen.getByLabelText("is Busy")).toBeInTheDocument();
|
|
||||||
// Calendar options
|
// Calendar options
|
||||||
const select = screen.getByLabelText("Calendar");
|
const select = screen.getByLabelText("Calendar");
|
||||||
fireEvent.mouseDown(select);
|
fireEvent.mouseDown(select);
|
||||||
|
|||||||
@@ -492,19 +492,6 @@ export default function EventDisplayModal({
|
|||||||
<MenuItem value={"PRIVATE"}>Private</MenuItem>
|
<MenuItem value={"PRIVATE"}>Private</MenuItem>
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormControl fullWidth margin="dense" size="small">
|
|
||||||
<InputLabel id="busy">is Busy</InputLabel>
|
|
||||||
<Select
|
|
||||||
labelId="busy"
|
|
||||||
value={busy}
|
|
||||||
disabled={!isOwn}
|
|
||||||
label="is busy"
|
|
||||||
onChange={(e) => setBusy(e.target.value)}
|
|
||||||
>
|
|
||||||
<MenuItem value={"free"}>Free</MenuItem>
|
|
||||||
<MenuItem value={"busy"}>Busy </MenuItem>
|
|
||||||
</Select>
|
|
||||||
</FormControl>
|
|
||||||
{/* Error */}
|
{/* Error */}
|
||||||
{event.error && (
|
{event.error && (
|
||||||
<InfoRow
|
<InfoRow
|
||||||
|
|||||||
@@ -324,19 +324,6 @@ function EventPopover({
|
|||||||
<MenuItem value={"PRIVATE"}>Private</MenuItem>
|
<MenuItem value={"PRIVATE"}>Private</MenuItem>
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
||||||
<FormControl fullWidth margin="dense" size="small">
|
|
||||||
<InputLabel id="busy">is Busy</InputLabel>
|
|
||||||
<Select
|
|
||||||
labelId="busy"
|
|
||||||
value={busy}
|
|
||||||
label="is busy"
|
|
||||||
onChange={(e) => setBusy(e.target.value)}
|
|
||||||
>
|
|
||||||
<MenuItem value={"free"}>Free</MenuItem>
|
|
||||||
<MenuItem value={"busy"}>Busy </MenuItem>
|
|
||||||
</Select>
|
|
||||||
</FormControl>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user