From e1e44157bc46f4ab1ca7ebf39d5a68a55e55bbb8 Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Fri, 19 Oct 2018 12:59:08 +0100 Subject: [PATCH] Hiding "edit" when "original image" --- src/components/Options/index.tsx | 94 +++++++++++++++++--------------- 1 file changed, 51 insertions(+), 43 deletions(-) diff --git a/src/components/Options/index.tsx b/src/components/Options/index.tsx index f29f3b4f..7c80e865 100644 --- a/src/components/Options/index.tsx +++ b/src/components/Options/index.tsx @@ -142,40 +142,46 @@ export default class Options extends Component { return (
-

Edit

- - {preprocessorState.resize.enabled ? - - : null} - - - - {preprocessorState.quantizer.enabled ? - - : null} + {encoderState.type === identity.type ? null : +
+

Edit

+ + + {preprocessorState.resize.enabled ? + + : null} + + + + {preprocessorState.quantizer.enabled ? + + : null} + +
+ }

Compress

@@ -193,16 +199,18 @@ export default class Options extends Component { } - {EncoderOptionComponent && - - } + + {EncoderOptionComponent ? + + : null} +
{/*