Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
saarikabhasi committed Dec 9, 2024
1 parent d6c7017 commit b31c0a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ interface Props {
onCancelAddingNewFields?: () => void;
isAddingFields?: boolean;
semanticTextInfo?: SemanticTextInfo;
createFieldFormRef: React.RefObject<HTMLDivElement>;
createFieldFormRef?: React.RefObject<HTMLDivElement>;
}

export const CreateField = React.memo(function CreateFieldComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface Props {
treeDepth: number;
state: State;
isAddingFields?: boolean;
createFieldFormRef: React.RefObject<HTMLDivElement>;
createFieldFormRef?: React.RefObject<HTMLDivElement>;
pendingFieldsRef?: React.RefObject<HTMLDivElement>;
}

Expand All @@ -87,7 +87,6 @@ function FieldListItemComponent(
state,
isAddingFields,
setPreviousState,
createFieldFormRef,
pendingFieldsRef,
}: Props,
ref: React.Ref<HTMLLIElement>
Expand Down Expand Up @@ -134,7 +133,6 @@ function FieldListItemComponent(
paddingLeft={indentCreateField}
maxNestedDepth={maxNestedDepth}
isAddingFields={isAddingFields}
createFieldFormRef={createFieldFormRef}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const FieldsListItemContainer = ({
pendingFieldsRef,
}: Props) => {
const dispatch = useDispatch();
const createFieldFormRef = useRef<HTMLDivElement>(null);
const listElement = useRef<HTMLLIElement | null>(null);
const {
documentFields: { status, fieldToAddFieldTo, fieldToEdit },
Expand Down Expand Up @@ -113,7 +112,6 @@ export const FieldsListItemContainer = ({
toggleExpand={toggleExpand}
state={state}
isAddingFields={isAddingFields}
createFieldFormRef={createFieldFormRef}
pendingFieldsRef={pendingFieldsRef}
/>
);
Expand Down

0 comments on commit b31c0a2

Please sign in to comment.