From 71e29c40cd8d0fc8477d493c81f6a2a3be32ccb4 Mon Sep 17 00:00:00 2001 From: Brian Cooper Date: Mon, 11 Jun 2018 17:51:34 -0400 Subject: [PATCH] [fixup] morgan nit and ian comment addressed --- protocol-designer/src/components/FilePage.js | 73 +++++++++++--------- 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/protocol-designer/src/components/FilePage.js b/protocol-designer/src/components/FilePage.js index 4ee0b804ec96..d9df095e4b2e 100644 --- a/protocol-designer/src/components/FilePage.js +++ b/protocol-designer/src/components/FilePage.js @@ -18,41 +18,48 @@ export type FilePageProps = { saveFileMetadata: () => void } -const FilePage = ({formConnector, isFormAltered, instruments, saveFileMetadata}: FilePageProps) => ( -
-
-

- Information -

-
{ console.log('DID IT') }}> -
- - - +const FilePage = ({formConnector, isFormAltered, instruments, saveFileMetadata}: FilePageProps) => { + const handleSubmit = () => { + // blur focused field on submit + if (document && document.activeElement) document.activeElement.blur() + saveFileMetadata() + } + return ( +
+
+

+ Information +

+ +
+ + + - - - -
+ + + +
- - - -
- - {isFormAltered ? 'UPDATE' : 'SAVED'} - -
- -
+ + + +
+ + {isFormAltered ? 'UPDATE' : 'UPDATED'} + +
+ + -
-

- Pipettes -

- -
-
-) +
+

+ Pipettes +

+ +
+ + ) +} export default FilePage