diff --git a/packages/client/src/admin/sketchClasses/SketchClassAdmin.tsx b/packages/client/src/admin/sketchClasses/SketchClassAdmin.tsx index 7dccd221..564f69c2 100644 --- a/packages/client/src/admin/sketchClasses/SketchClassAdmin.tsx +++ b/packages/client/src/admin/sketchClasses/SketchClassAdmin.tsx @@ -6,7 +6,7 @@ import { useTemplateSketchClassesQuery, } from "../../generated/graphql"; import TemplateChooser from "./TemplateChooser"; -import { useCallback, useMemo } from "react"; +import { useCallback, useMemo, useState } from "react"; import NavSidebar, { NavSidebarItem } from "../../components/NavSidebar"; import Button from "../../components/Button"; import { useHistory, useRouteMatch, Switch, Route } from "react-router-dom"; @@ -49,6 +49,8 @@ export default function SketchClassAdmin() { ]; }, [sketchClasses, slug]); + const [showSuperuserOptions, setShowSuperuserOptions] = useState(false); + const onCreate = useCallback( (sc: SketchingDetailsFragment) => { // eslint-disable-next-line i18next/no-literal-string @@ -66,12 +68,32 @@ export default function SketchClassAdmin() {