chore(ui): format

Lots of changed bc the line length is now 120. May as well do it now.
This commit is contained in:
psychedelicious
2024-01-27 20:55:55 +11:00
parent b922ee566a
commit 189c430e46
568 changed files with 3602 additions and 11172 deletions

View File

@ -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>

View File

@ -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();

View File

@ -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]
);

View File

@ -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;