mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Lint errors
This commit is contained in:
parent
5ff4dd26bb
commit
8f2a646286
@ -21,14 +21,12 @@ import SDXLConcatLink from './SDXLConcatLink';
|
|||||||
|
|
||||||
const promptInputSelector = createSelector(
|
const promptInputSelector = createSelector(
|
||||||
[stateSelector, activeTabNameSelector],
|
[stateSelector, activeTabNameSelector],
|
||||||
({ sdxl, ui }, activeTabName) => {
|
({ sdxl }, activeTabName) => {
|
||||||
const { negativeStylePrompt, shouldConcatSDXLStylePrompt } = sdxl;
|
const { negativeStylePrompt, shouldConcatSDXLStylePrompt } = sdxl;
|
||||||
const { shouldPinParametersPanel } = ui;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
prompt: negativeStylePrompt,
|
prompt: negativeStylePrompt,
|
||||||
shouldConcatSDXLStylePrompt,
|
shouldConcatSDXLStylePrompt,
|
||||||
shouldPinParametersPanel,
|
|
||||||
activeTabName,
|
activeTabName,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -48,12 +46,8 @@ const ParamSDXLNegativeStyleConditioning = () => {
|
|||||||
const promptRef = useRef<HTMLTextAreaElement>(null);
|
const promptRef = useRef<HTMLTextAreaElement>(null);
|
||||||
const { isOpen, onClose, onOpen } = useDisclosure();
|
const { isOpen, onClose, onOpen } = useDisclosure();
|
||||||
|
|
||||||
const {
|
const { prompt, activeTabName, shouldConcatSDXLStylePrompt } =
|
||||||
prompt,
|
useAppSelector(promptInputSelector);
|
||||||
activeTabName,
|
|
||||||
shouldPinParametersPanel,
|
|
||||||
shouldConcatSDXLStylePrompt,
|
|
||||||
} = useAppSelector(promptInputSelector);
|
|
||||||
|
|
||||||
const handleChangePrompt = useCallback(
|
const handleChangePrompt = useCallback(
|
||||||
(e: ChangeEvent<HTMLTextAreaElement>) => {
|
(e: ChangeEvent<HTMLTextAreaElement>) => {
|
||||||
|
@ -21,13 +21,11 @@ import SDXLConcatLink from './SDXLConcatLink';
|
|||||||
|
|
||||||
const promptInputSelector = createSelector(
|
const promptInputSelector = createSelector(
|
||||||
[stateSelector, activeTabNameSelector],
|
[stateSelector, activeTabNameSelector],
|
||||||
({ sdxl, ui }, activeTabName) => {
|
({ sdxl }, activeTabName) => {
|
||||||
const { positiveStylePrompt, shouldConcatSDXLStylePrompt } = sdxl;
|
const { positiveStylePrompt, shouldConcatSDXLStylePrompt } = sdxl;
|
||||||
const { shouldPinParametersPanel } = ui;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
prompt: positiveStylePrompt,
|
prompt: positiveStylePrompt,
|
||||||
shouldPinParametersPanel,
|
|
||||||
shouldConcatSDXLStylePrompt,
|
shouldConcatSDXLStylePrompt,
|
||||||
activeTabName,
|
activeTabName,
|
||||||
};
|
};
|
||||||
@ -48,12 +46,8 @@ const ParamSDXLPositiveStyleConditioning = () => {
|
|||||||
const promptRef = useRef<HTMLTextAreaElement>(null);
|
const promptRef = useRef<HTMLTextAreaElement>(null);
|
||||||
const { isOpen, onClose, onOpen } = useDisclosure();
|
const { isOpen, onClose, onOpen } = useDisclosure();
|
||||||
|
|
||||||
const {
|
const { prompt, activeTabName, shouldConcatSDXLStylePrompt } =
|
||||||
prompt,
|
useAppSelector(promptInputSelector);
|
||||||
activeTabName,
|
|
||||||
shouldPinParametersPanel,
|
|
||||||
shouldConcatSDXLStylePrompt,
|
|
||||||
} = useAppSelector(promptInputSelector);
|
|
||||||
|
|
||||||
const handleChangePrompt = useCallback(
|
const handleChangePrompt = useCallback(
|
||||||
(e: ChangeEvent<HTMLTextAreaElement>) => {
|
(e: ChangeEvent<HTMLTextAreaElement>) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user