Admin Mode
diff --git a/src/components/admin/resources/form.tsx b/src/components/admin/resources/form.tsx
index a3ddfa6..45d5a54 100644
--- a/src/components/admin/resources/form.tsx
+++ b/src/components/admin/resources/form.tsx
@@ -1,10 +1,12 @@
-import { PaymentType, type AuditoryResource } from "@prisma/client";
+import { PaymentType, type AuditoryResource, SkillLevel } from "@prisma/client";
import Image from "next/image";
import { PencilSquareIcon } from "@heroicons/react/24/solid";
import {
MultiSelector,
- MultiSelectorContext,
+ MultiSelectorMany,
MultiSelectorOption,
+ SelectedManyContext,
+ SelectedUniqueContext,
} from "../../forms/selectors";
import { InfoInputLine } from "~/components/forms/textInput";
import { PriceIcon } from "~/prices/Icons";
@@ -71,8 +73,8 @@ const PaymentTypeOption = ({
}) => {
return (
-
- {({ selected }) => (
+
+ {(selected) => (
)}
-
+
+
+ );
+};
+
+const SkillLevelOption = ({
+ type,
+ label,
+}: {
+ type: SkillLevel;
+ label: string;
+}) => {
+ return (
+
+
+ {(selected) => (
+
+
+ {label}
+
+
+ )}
+
);
};
@@ -129,24 +167,31 @@ const ResourceSummarySubForm = ({