diff --git a/frontend/src/features/admin-form/create/builder-and-design/BuilderAndDesignDrawer/FieldListDrawer/FieldListDrawer.tsx b/frontend/src/features/admin-form/create/builder-and-design/BuilderAndDesignDrawer/FieldListDrawer/FieldListDrawer.tsx index 2fd9cb5730..22c85b0c73 100644 --- a/frontend/src/features/admin-form/create/builder-and-design/BuilderAndDesignDrawer/FieldListDrawer/FieldListDrawer.tsx +++ b/frontend/src/features/admin-form/create/builder-and-design/BuilderAndDesignDrawer/FieldListDrawer/FieldListDrawer.tsx @@ -18,6 +18,7 @@ import { Tooltip, } from '@chakra-ui/react' +import { useIsMobile } from '~hooks/useIsMobile' import { Tab } from '~components/Tabs' import { useCreatePageSidebar } from '~features/admin-form/create/common/CreatePageSidebarContext' @@ -32,21 +33,24 @@ import { PaymentsInputPanel, } from './field-panels' -const MagicFormBuilderButton = ({ ...styleProps }) => ( - - - -) +const MagicFormBuilderButton = ({ ...styleProps }) => { + const isMobile = useIsMobile() + return !isMobile ? ( + + + + ) : null +} const FieldSearchBar = ({ searchValue,