Rename InlineCell to RecordInlineCell (#2377)

rename inline cell
This commit is contained in:
bosiraphael
2023-11-06 17:18:25 +01:00
committed by GitHub
parent 3432615a17
commit 88ca846f83
12 changed files with 46 additions and 44 deletions

View File

@ -5,7 +5,7 @@ import { Entity } from '@/ui/input/relation-picker/types/EntityTypeForSelect';
import { FieldContext } from '@/ui/object/field/contexts/FieldContext';
import { FieldDefinition } from '@/ui/object/field/types/FieldDefinition';
import { FieldRelationMetadata } from '@/ui/object/field/types/FieldMetadata';
import { InlineCell } from '@/ui/object/record-inline-cell/components/InlineCell';
import { RecordInlineCell } from '@/ui/object/record-inline-cell/components/RecordInlineCell';
import { InlineCellHotkeyScope } from '@/ui/object/record-inline-cell/types/InlineCellHotkeyScope';
import { Company, User, useUpdateActivityMutation } from '~/generated/graphql';
@ -47,7 +47,7 @@ export const ActivityAssigneeEditableField = ({
return (
<FieldContext.Provider value={value}>
<InlineCell />
<RecordInlineCell />
</FieldContext.Provider>
);
};

View File

@ -2,7 +2,7 @@ import { IconCalendar } from '@/ui/display/icon/index';
import { FieldContext } from '@/ui/object/field/contexts/FieldContext';
import { FieldDefinition } from '@/ui/object/field/types/FieldDefinition';
import { FieldDateMetadata } from '@/ui/object/field/types/FieldMetadata';
import { InlineCell } from '@/ui/object/record-inline-cell/components/InlineCell';
import { RecordInlineCell } from '@/ui/object/record-inline-cell/components/RecordInlineCell';
import { InlineCellHotkeyScope } from '@/ui/object/record-inline-cell/types/InlineCellHotkeyScope';
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
import { useUpdateActivityMutation } from '~/generated/graphql';
@ -33,7 +33,7 @@ export const ActivityEditorDateField = ({
hotkeyScope: InlineCellHotkeyScope.InlineCell,
}}
>
<InlineCell />
<RecordInlineCell />
</FieldContext.Provider>
</RecoilScope>
);

View File

@ -1,7 +1,7 @@
import { ActivityTargetChips } from '@/activities/components/ActivityTargetChips';
import { IconArrowUpRight, IconPencil } from '@/ui/display/icon';
import { RelationPickerHotkeyScope } from '@/ui/input/relation-picker/types/RelationPickerHotkeyScope';
import { InlineCellContainer } from '@/ui/object/record-inline-cell/components/InlineCellContainer';
import { RecordInlineCellContainer } from '@/ui/object/record-inline-cell/components/RecordInlineCellContainer';
import { FieldRecoilScopeContext } from '@/ui/object/record-inline-cell/states/recoil-scope-contexts/FieldRecoilScopeContext';
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
import { Activity, ActivityTarget, Company, Person } from '~/generated/graphql';
@ -25,7 +25,7 @@ export const ActivityRelationEditableField = ({
return (
<RecoilScope CustomRecoilScopeContext={FieldRecoilScopeContext}>
<RecoilScope>
<InlineCellContainer
<RecordInlineCellContainer
buttonIcon={IconPencil}
customEditHotkeyScope={{
scope: RelationPickerHotkeyScope.RelationPicker,