diff --git a/apps/studio/src/constants/formBuilder.ts b/apps/studio/src/constants/formBuilder.ts index b38aaa31a..98409e334 100644 --- a/apps/studio/src/constants/formBuilder.ts +++ b/apps/studio/src/constants/formBuilder.ts @@ -10,6 +10,7 @@ export const JSON_FORMS_RANKING = { AnyOfControl: 3, ProseControl: 2, RadioControl: 3, + LinkControl: 3, GroupLayoutRenderer: 1, VerticalLayoutRenderer: 1, } diff --git a/apps/studio/src/features/editing-experience/components/ComplexEditorStateDrawer.tsx b/apps/studio/src/features/editing-experience/components/ComplexEditorStateDrawer.tsx index 749c5161a..82b00cb4c 100644 --- a/apps/studio/src/features/editing-experience/components/ComplexEditorStateDrawer.tsx +++ b/apps/studio/src/features/editing-experience/components/ComplexEditorStateDrawer.tsx @@ -1,4 +1,4 @@ -import { Box, Heading, HStack, Icon } from "@chakra-ui/react" +import { Box, Flex, Heading, HStack, Icon } from "@chakra-ui/react" import { Button, IconButton } from "@opengovsg/design-system-react" import { getComponentSchema } from "@opengovsg/isomer-components" import { BiDollar, BiX } from "react-icons/bi" @@ -29,7 +29,13 @@ export default function ComplexEditorStateDrawer(): JSX.Element { const { title } = getComponentSchema(component.type) return ( - + - + - + ) } diff --git a/apps/studio/src/features/editing-experience/components/RootStateDrawer.tsx b/apps/studio/src/features/editing-experience/components/RootStateDrawer.tsx index 4c66f189d..81be2ea18 100644 --- a/apps/studio/src/features/editing-experience/components/RootStateDrawer.tsx +++ b/apps/studio/src/features/editing-experience/components/RootStateDrawer.tsx @@ -5,7 +5,6 @@ import { Divider, HStack, Icon, - Spacer, Text, VStack, } from "@chakra-ui/react" @@ -148,13 +147,14 @@ export default function RootStateDrawer() { - - {/* TODO: Add New Block Section */}