diff --git a/front/src/modules/companies/components/NewCompanyBoardCard.tsx b/front/src/modules/companies/components/NewCompanyBoardCard.tsx deleted file mode 100644 index 3290cee5e..000000000 --- a/front/src/modules/companies/components/NewCompanyBoardCard.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { useCallback } from 'react'; - -import { useRecoilScopedState } from '@/recoil-scope/hooks/useRecoilScopedState'; -import { SingleEntitySelect } from '@/relation-picker/components/SingleEntitySelect'; -import { relationPickerSearchFilterScopedState } from '@/relation-picker/states/relationPickerSearchFilterScopedState'; - -import { useFilteredSearchCompanyQuery } from '../queries'; - -export function NewCompanyBoardCard() { - const [searchFilter] = useRecoilScopedState( - relationPickerSearchFilterScopedState, - ); - - const companies = useFilteredSearchCompanyQuery({ searchFilter }); - - const handleEntitySelect = useCallback(async (companyId: string) => { - return; - }, []); - - function handleCancel() { - return; - } - - return ( - handleEntitySelect(value.id)} - onCancel={handleCancel} - entities={{ - entitiesToSelect: companies.entitiesToSelect, - selectedEntity: companies.selectedEntities[0], - loading: companies.loading, - }} - /> - ); -} diff --git a/front/src/modules/companies/components/NewCompanyProgressButton.tsx b/front/src/modules/companies/components/NewCompanyProgressButton.tsx index 944e1ca62..51cebd9f7 100644 --- a/front/src/modules/companies/components/NewCompanyProgressButton.tsx +++ b/front/src/modules/companies/components/NewCompanyProgressButton.tsx @@ -96,18 +96,16 @@ export function NewCompanyProgressButton() { return ( <> {isCreatingCard ? ( - - handleEntitySelect(value)} - onCancel={handleCancel} - entities={{ - entitiesToSelect: companies.entitiesToSelect, - selectedEntity: companies.selectedEntities[0], - loading: companies.loading, - }} - disableBackgroundBlur={true} - /> - + handleEntitySelect(value)} + onCancel={handleCancel} + entities={{ + entitiesToSelect: companies.entitiesToSelect, + selectedEntity: companies.selectedEntities[0], + loading: companies.loading, + }} + disableBackgroundBlur={true} + /> ) : ( )} diff --git a/front/src/modules/companies/components/companyBoardOptions.tsx b/front/src/modules/companies/components/companyBoardOptions.tsx index 8bccfdc04..a4365d4a9 100644 --- a/front/src/modules/companies/components/companyBoardOptions.tsx +++ b/front/src/modules/companies/components/companyBoardOptions.tsx @@ -1,9 +1,14 @@ import { CompanyBoardCard } from '@/companies/components/CompanyBoardCard'; import { NewCompanyProgressButton } from '@/companies/components/NewCompanyProgressButton'; +import { RecoilScope } from '@/recoil-scope/components/RecoilScope'; import { BoardOptions } from '../../pipeline-progress/types/BoardOptions'; export const companyBoardOptions: BoardOptions = { - newCardComponent: , + newCardComponent: ( + + + + ), cardComponent: , }; diff --git a/front/src/modules/ui/components/form/Checkbox.tsx b/front/src/modules/ui/components/form/Checkbox.tsx index cc87cd661..332f2ac88 100644 --- a/front/src/modules/ui/components/form/Checkbox.tsx +++ b/front/src/modules/ui/components/form/Checkbox.tsx @@ -12,6 +12,7 @@ type OwnProps = { const StyledInputContainer = styled.div` align-items: center; display: flex; + position: relative; `; const StyledInput = styled.input<{ indeterminate?: boolean }>`