Skip to content

Commit a76f2aa

Browse files
committed
changes
1 parent d71a3f0 commit a76f2aa

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

backend/custom_admin/src/components/schedule-builder/item.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useDrag } from "react-dnd";
22

3+
import { Button } from "@radix-ui/themes";
34
import { useDjangoAdminEditor } from "../shared/django-admin-editor-modal/context";
45
import { convertHoursToMinutes } from "../utils/time";
56

@@ -82,9 +83,7 @@ export const ScheduleItemCard = ({ item, duration }) => {
8283
</li>
8384
)}
8485
<li className="pt-2">
85-
<button type="button" className="underline" onClick={openEditLink}>
86-
Edit schedule item
87-
</button>
86+
<Button onClick={openEditLink}>Edit</Button>
8887
</li>
8988
</ul>
9089
);

backend/custom_admin/src/components/schedule-builder/slot-creation.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Button } from "@radix-ui/themes";
12
import { useCurrentConference } from "../utils/conference";
23
import { useCreateScheduleSlotMutation } from "./create-schedule-slot.generated";
34

@@ -47,9 +48,5 @@ const AddSlotButton = ({ children, duration, type, dayId }) => {
4748
});
4849
};
4950

50-
return (
51-
<button type="button" className="btn" onClick={onCreateSlot}>
52-
{children}
53-
</button>
54-
);
51+
return <Button onClick={onCreateSlot}>{children}</Button>;
5552
};

0 commit comments

Comments
 (0)