mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): format
Lots of changed bc the line length is now 120. May as well do it now.
This commit is contained in:
@ -26,10 +26,7 @@ const ParamHrfMethodSelect = () => {
|
||||
[dispatch]
|
||||
);
|
||||
|
||||
const value = useMemo(
|
||||
() => options.find((o) => o.value === hrfMethod),
|
||||
[hrfMethod]
|
||||
);
|
||||
const value = useMemo(() => options.find((o) => o.value === hrfMethod), [hrfMethod]);
|
||||
|
||||
return (
|
||||
<FormControl>
|
||||
|
@ -1,9 +1,4 @@
|
||||
import {
|
||||
CompositeNumberInput,
|
||||
CompositeSlider,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
} from '@invoke-ai/ui-library';
|
||||
import { CompositeNumberInput, CompositeSlider, FormControl, FormLabel } from '@invoke-ai/ui-library';
|
||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||
import { setHrfStrength } from 'features/hrf/store/hrfSlice';
|
||||
import { memo, useCallback } from 'react';
|
||||
@ -14,12 +9,8 @@ const ParamHrfStrength = () => {
|
||||
const initial = useAppSelector((s) => s.config.sd.hrfStrength.initial);
|
||||
const sliderMin = useAppSelector((s) => s.config.sd.hrfStrength.sliderMin);
|
||||
const sliderMax = useAppSelector((s) => s.config.sd.hrfStrength.sliderMax);
|
||||
const numberInputMin = useAppSelector(
|
||||
(s) => s.config.sd.hrfStrength.numberInputMin
|
||||
);
|
||||
const numberInputMax = useAppSelector(
|
||||
(s) => s.config.sd.hrfStrength.numberInputMax
|
||||
);
|
||||
const numberInputMin = useAppSelector((s) => s.config.sd.hrfStrength.numberInputMin);
|
||||
const numberInputMax = useAppSelector((s) => s.config.sd.hrfStrength.numberInputMax);
|
||||
const coarseStep = useAppSelector((s) => s.config.sd.hrfStrength.coarseStep);
|
||||
const fineStep = useAppSelector((s) => s.config.sd.hrfStrength.fineStep);
|
||||
const dispatch = useAppDispatch();
|
||||
|
@ -12,8 +12,7 @@ const ParamHrfToggle = () => {
|
||||
const hrfEnabled = useAppSelector((s) => s.hrf.hrfEnabled);
|
||||
|
||||
const handleHrfEnabled = useCallback(
|
||||
(e: ChangeEvent<HTMLInputElement>) =>
|
||||
dispatch(setHrfEnabled(e.target.checked)),
|
||||
(e: ChangeEvent<HTMLInputElement>) => dispatch(setHrfEnabled(e.target.checked)),
|
||||
[dispatch]
|
||||
);
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
import type { PayloadAction } from '@reduxjs/toolkit';
|
||||
import { createSlice } from '@reduxjs/toolkit';
|
||||
import type { RootState } from 'app/store/store';
|
||||
import type {
|
||||
ParameterHRFMethod,
|
||||
ParameterStrength,
|
||||
} from 'features/parameters/types/parameterSchemas';
|
||||
import type { ParameterHRFMethod, ParameterStrength } from 'features/parameters/types/parameterSchemas';
|
||||
|
||||
export interface HRFState {
|
||||
_version: 1;
|
||||
|
Reference in New Issue
Block a user