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(
|
||||
[stateSelector, activeTabNameSelector],
|
||||
({ sdxl, ui }, activeTabName) => {
|
||||
({ sdxl }, activeTabName) => {
|
||||
const { negativeStylePrompt, shouldConcatSDXLStylePrompt } = sdxl;
|
||||
const { shouldPinParametersPanel } = ui;
|
||||
|
||||
return {
|
||||
prompt: negativeStylePrompt,
|
||||
shouldConcatSDXLStylePrompt,
|
||||
shouldPinParametersPanel,
|
||||
activeTabName,
|
||||
};
|
||||
},
|
||||
@ -48,12 +46,8 @@ const ParamSDXLNegativeStyleConditioning = () => {
|
||||
const promptRef = useRef<HTMLTextAreaElement>(null);
|
||||
const { isOpen, onClose, onOpen } = useDisclosure();
|
||||
|
||||
const {
|
||||
prompt,
|
||||
activeTabName,
|
||||
shouldPinParametersPanel,
|
||||
shouldConcatSDXLStylePrompt,
|
||||
} = useAppSelector(promptInputSelector);
|
||||
const { prompt, activeTabName, shouldConcatSDXLStylePrompt } =
|
||||
useAppSelector(promptInputSelector);
|
||||
|
||||
const handleChangePrompt = useCallback(
|
||||
(e: ChangeEvent<HTMLTextAreaElement>) => {
|
||||
|
@ -21,13 +21,11 @@ import SDXLConcatLink from './SDXLConcatLink';
|
||||
|
||||
const promptInputSelector = createSelector(
|
||||
[stateSelector, activeTabNameSelector],
|
||||
({ sdxl, ui }, activeTabName) => {
|
||||
({ sdxl }, activeTabName) => {
|
||||
const { positiveStylePrompt, shouldConcatSDXLStylePrompt } = sdxl;
|
||||
const { shouldPinParametersPanel } = ui;
|
||||
|
||||
return {
|
||||
prompt: positiveStylePrompt,
|
||||
shouldPinParametersPanel,
|
||||
shouldConcatSDXLStylePrompt,
|
||||
activeTabName,
|
||||
};
|
||||
@ -48,12 +46,8 @@ const ParamSDXLPositiveStyleConditioning = () => {
|
||||
const promptRef = useRef<HTMLTextAreaElement>(null);
|
||||
const { isOpen, onClose, onOpen } = useDisclosure();
|
||||
|
||||
const {
|
||||
prompt,
|
||||
activeTabName,
|
||||
shouldPinParametersPanel,
|
||||
shouldConcatSDXLStylePrompt,
|
||||
} = useAppSelector(promptInputSelector);
|
||||
const { prompt, activeTabName, shouldConcatSDXLStylePrompt } =
|
||||
useAppSelector(promptInputSelector);
|
||||
|
||||
const handleChangePrompt = useCallback(
|
||||
(e: ChangeEvent<HTMLTextAreaElement>) => {
|
||||
|
Loading…
Reference in New Issue
Block a user