diff --git a/invokeai/frontend/web/src/features/sdxl/components/ParamSDXLPromptArea.tsx b/invokeai/frontend/web/src/features/sdxl/components/ParamSDXLPromptArea.tsx index 233894e280..61719cea3f 100644 --- a/invokeai/frontend/web/src/features/sdxl/components/ParamSDXLPromptArea.tsx +++ b/invokeai/frontend/web/src/features/sdxl/components/ParamSDXLPromptArea.tsx @@ -13,6 +13,10 @@ export default function ParamSDXLPromptArea() { (state: RootState) => state.ui.shouldPinParametersPanel ); + const shouldConcatSDXLStylePrompt = useAppSelector( + (state: RootState) => state.sdxl.shouldConcatSDXLStylePrompt + ); + return ( - - - - - - + {shouldConcatSDXLStylePrompt && ( + + + + )} + {shouldConcatSDXLStylePrompt && ( + + + + )} diff --git a/invokeai/frontend/web/src/features/sdxl/components/SDXLConcatLink.tsx b/invokeai/frontend/web/src/features/sdxl/components/SDXLConcatLink.tsx index e9c3e0a6ab..c4a7caf1d5 100644 --- a/invokeai/frontend/web/src/features/sdxl/components/SDXLConcatLink.tsx +++ b/invokeai/frontend/web/src/features/sdxl/components/SDXLConcatLink.tsx @@ -1,112 +1,105 @@ import { Box, Flex } from '@chakra-ui/react'; -import { RootState } from 'app/store/store'; -import { useAppSelector } from 'app/store/storeHooks'; import { motion } from 'framer-motion'; import { FaLink } from 'react-icons/fa'; export default function SDXLConcatLink() { - const shouldConcatSDXLStylePrompt = useAppSelector( - (state: RootState) => state.sdxl.shouldConcatSDXLStylePrompt - ); return ( - shouldConcatSDXLStylePrompt && ( - + + - - - - - - - ) + + + + ); }