mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 01:37:26 +00:00
Minor tweaks
This commit is contained in:
@@ -159,7 +159,7 @@ export default class App extends Component<Props, State> {
|
|||||||
// options should always be correct for the type, but TypeScript isn't smart enough.
|
// options should always be correct for the type, but TypeScript isn't smart enough.
|
||||||
const encoderState: EncoderState = {
|
const encoderState: EncoderState = {
|
||||||
type,
|
type,
|
||||||
options: options ? options : encoderMap[type].defaultOptions,
|
options: options || encoderMap[type].defaultOptions,
|
||||||
} as EncoderState;
|
} as EncoderState;
|
||||||
|
|
||||||
images[index] = {
|
images[index] = {
|
||||||
|
|||||||
@@ -125,14 +125,12 @@ export default class Options extends Component<Props, State> {
|
|||||||
/>
|
/>
|
||||||
Enable
|
Enable
|
||||||
</label>
|
</label>
|
||||||
{preprocessorState.quantizer.enabled ? (
|
{preprocessorState.quantizer.enabled &&
|
||||||
<QuantizerOptionsComponent
|
<QuantizerOptionsComponent
|
||||||
options={preprocessorState.quantizer}
|
options={preprocessorState.quantizer}
|
||||||
onChange={this.onQuantizerOptionsChange}
|
onChange={this.onQuantizerOptionsChange}
|
||||||
/>
|
/>
|
||||||
) : (
|
}
|
||||||
<div/>
|
|
||||||
)}
|
|
||||||
<hr/>
|
<hr/>
|
||||||
<label>
|
<label>
|
||||||
Mode:
|
Mode:
|
||||||
|
|||||||
Reference in New Issue
Block a user