diff --git a/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx b/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx index 09f0f1fe962..880e29f81bc 100644 --- a/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx +++ b/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx @@ -15,6 +15,7 @@ import { Toggle, IconHelpCircle, Input, + IconExternalLink, } from 'ui' import { useStore, useParams, checkPermissions } from 'hooks' @@ -33,6 +34,7 @@ import { FormSectionContent, } from 'components/ui/Forms' import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query' +import clsx from 'clsx' interface Props {} @@ -192,27 +194,34 @@ const EdgeFunctionDetails: FC = () => { label="Enforce JWT Verification" descriptionText="Require a valid JWT in the authorization header when invoking the function" /> - -

Allow import maps

- - - - - - - } - checked={selectedFunction?.import_map} - descriptionText="Allow the use of bare specifiers without having to install the Node.js package locally" - /> +
+
+

+ Import maps are{' '} + + {selectedFunction?.import_map ? 'allowed' : 'disallowed'} + {' '} + for this function +

+
+

+ Import maps allow the use of bare specifiers without having to install the + Node.js package locally +

+
+ + + + + +
+