From d3f2836f481814e6e7a6521a073ddcafb1f21b90 Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Thu, 2 Aug 2018 16:59:13 +0100 Subject: [PATCH] Hide quantize options if original image. Fixes #120. --- src/components/Options/index.tsx | 38 ++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/src/components/Options/index.tsx b/src/components/Options/index.tsx index e23c5985..4fe0675b 100644 --- a/src/components/Options/index.tsx +++ b/src/components/Options/index.tsx @@ -112,23 +112,27 @@ export default class Options extends Component { return (
-

Quantization

- - {preprocessorState.quantizer.enabled && - - } -
+ {encoderState.type !== 'identity' && ( +
+

Quantization

+ + {preprocessorState.quantizer.enabled && + + } +
+
+ )}