Skip to content

Commit

Permalink
updated RecordInline
Browse files Browse the repository at this point in the history
  • Loading branch information
srp-pawar committed Aug 2, 2024
1 parent 3ff9370 commit 39891fc
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { RelationPickerHotkeyScope } from '@/object-record/relation-picker/types
import { useInlineCell } from '../hooks/useInlineCell';

import { useOpenCreateActivityDrawer } from '@/activities/hooks/useOpenCreateActivityDrawer';
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar';
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
import { RecordInlineCellContainer } from './RecordInlineCellContainer';
Expand Down Expand Up @@ -51,7 +52,9 @@ export const RecordInlineCell = ({
closeInlineCell();
};

const openCreateActivity = useOpenCreateActivityDrawer();
const openCreateActivity = useOpenCreateActivityDrawer({
activityObjectNameSingular: CoreObjectNameSingular.Note,
});
const { enqueueSnackBar } = useSnackBar();
const handleStageChange: FieldInputEvent = (persistField) => {
persistField();
Expand All @@ -61,7 +64,6 @@ export const RecordInlineCell = ({
? fieldDefinition.metadata.objectMetadataNameSingular
: '';
openCreateActivity({
type: 'Note',
targetableObjects: [
{
id: entityId,
Expand Down Expand Up @@ -134,7 +136,7 @@ export const RecordInlineCell = ({
isDisplayModeFixHeight
editModeContentOnly={isFieldInputOnly}
loading={loading}
/>
/>
</FieldFocusContextProvider>
)}
{fieldDefinition.metadata.fieldName === 'stage' && (
Expand Down

0 comments on commit 39891fc

Please sign in to comment.