diff --git a/services/web/frontend/js/features/project-list/components/search-form.tsx b/services/web/frontend/js/features/project-list/components/search-form.tsx index c216669a74..d1fc2f3747 100644 --- a/services/web/frontend/js/features/project-list/components/search-form.tsx +++ b/services/web/frontend/js/features/project-list/components/search-form.tsx @@ -56,11 +56,9 @@ function SearchForm({ } const placeholder = `${placeholderMessage}…` - const handleChange = ( - e: React.ChangeEvent< - HTMLInputElement & Omit - > - ) => { + const handleChange: React.ComponentProps< + typeof OLFormControl + >['onChange'] = e => { eventTracking.sendMB('project-list-page-interaction', { action: 'search', isSmallDevice, diff --git a/services/web/frontend/js/features/token-access/components/leave-project-modal.tsx b/services/web/frontend/js/features/token-access/components/leave-project-modal.tsx index b4c716f928..f1c82d1e67 100644 --- a/services/web/frontend/js/features/token-access/components/leave-project-modal.tsx +++ b/services/web/frontend/js/features/token-access/components/leave-project-modal.tsx @@ -3,9 +3,9 @@ import OLModal, { OLModalBody, OLModalFooter, OLModalHeader, + OLModalTitle, } from '@/features/ui/components/ol/ol-modal' import Notification from '@/shared/components/notification' -import { Modal } from 'react-bootstrap' import { useTranslation } from 'react-i18next' type LeaveProjectModalProps = { @@ -29,7 +29,7 @@ function LeaveProjectModal({ backdrop="static" > - {t('leave_project')} + {t('leave_project')}

{t('about_to_leave_project')}

diff --git a/services/web/frontend/js/features/ui/components/ol/ol-form-checkbox.tsx b/services/web/frontend/js/features/ui/components/ol/ol-form-checkbox.tsx index 65edbd450e..27de2f4ed3 100644 --- a/services/web/frontend/js/features/ui/components/ol/ol-form-checkbox.tsx +++ b/services/web/frontend/js/features/ui/components/ol/ol-form-checkbox.tsx @@ -36,6 +36,7 @@ function OLFormCheckbox(props: OLFormCheckboxProps) { children: rest.label, checked: rest.checked, value: rest.value, + id: rest.id, name: rest.name, required: rest.required, readOnly: rest.readOnly, diff --git a/services/web/frontend/js/shared/components/split-test-badge.tsx b/services/web/frontend/js/shared/components/split-test-badge.tsx index 817088e4cd..cb13ed5ad1 100644 --- a/services/web/frontend/js/shared/components/split-test-badge.tsx +++ b/services/web/frontend/js/shared/components/split-test-badge.tsx @@ -1,10 +1,8 @@ import { useSplitTestContext } from '../context/split-test-context' import BetaBadge from './beta-badge' -import { OverlayTriggerProps } from 'react-bootstrap' type TooltipProps = { id?: string - placement?: OverlayTriggerProps['placement'] className?: string } diff --git a/services/web/test/frontend/shared/hooks/use-detach-layout.spec.tsx b/services/web/test/frontend/shared/hooks/use-detach-layout.spec.tsx index 3d9b0085a2..ea02820145 100644 --- a/services/web/test/frontend/shared/hooks/use-detach-layout.spec.tsx +++ b/services/web/test/frontend/shared/hooks/use-detach-layout.spec.tsx @@ -1,7 +1,10 @@ import useDetachLayout from '../../../../frontend/js/shared/hooks/use-detach-layout' import { detachChannel, testDetachChannel } from '../../helpers/detach-channel' import { EditorProviders } from '../../helpers/editor-providers' -import { Button, Checkbox, ControlLabel, FormGroup } from 'react-bootstrap' +import OLFormGroup from '@/features/ui/components/ol/ol-form-group' +import OLFormCheckbox from '@/features/ui/components/ol/ol-form-checkbox' +import OLFormLabel from '@/features/ui/components/ol/ol-form-label' +import OLButton from '@/features/ui/components/ol/ol-button' const DetachLayoutTest = () => { const { role, reattach, detach, isLinked, isLinking, isRedundant } = @@ -12,24 +15,29 @@ const DetachLayoutTest = () => { role: {role || 'none'} - - - linked - - - - linking - - - - redundant - - - + ) }