From a5f55ef0fa6bd61ba5678d5ccdbf26589c093212 Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Thu, 15 Nov 2018 14:21:05 +0100 Subject: [PATCH 1/1] Add pickerId prop to DialogCopy Feature #14470 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- .../dialog-copy/dialog-copy.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/views-components/dialog-copy/dialog-copy.tsx b/src/views-components/dialog-copy/dialog-copy.tsx index 41554159..24e91dae 100644 --- a/src/views-components/dialog-copy/dialog-copy.tsx +++ b/src/views-components/dialog-copy/dialog-copy.tsx @@ -3,6 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from "react"; +import { memoize } from 'lodash/fp'; import { InjectedFormProps, Field } from 'redux-form'; import { WithDialogProps } from '~/store/dialog/with-dialog'; import { FormDialog } from '~/components/form-dialog/form-dialog'; @@ -13,22 +14,25 @@ import { CopyFormDialogData } from '~/store/copy-dialog/copy-dialog'; type CopyFormDialogProps = WithDialogProps & InjectedFormProps; -export const DialogCopy = (props: CopyFormDialogProps) => +export const DialogCopy = (props: CopyFormDialogProps & { pickerId: string }) => ; -const CopyDialogFields = () => - - -; +const CopyDialogFields = memoize((pickerId: string) => + () => + + + + ); -- 2.30.2