mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): revised entity list action bars
- Global action bar on top - Selected Entity action bar below
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||
import { selectImg2imgStrength, setImg2imgStrength } from 'features/controlLayers/store/paramsSlice';
|
||||
import ImageToImageStrength from 'features/parameters/components/ImageToImage/ImageToImageStrength';
|
||||
import { DenoisingStrength } from 'features/parameters/components/ImageToImage/ImageToImageStrength';
|
||||
import { memo, useCallback } from 'react';
|
||||
|
||||
const ParamImageToImageStrength = () => {
|
||||
@@ -14,7 +14,7 @@ const ParamImageToImageStrength = () => {
|
||||
[dispatch]
|
||||
);
|
||||
|
||||
return <ImageToImageStrength value={img2imgStrength} onChange={onChange} />;
|
||||
return <DenoisingStrength value={img2imgStrength} onChange={onChange} />;
|
||||
};
|
||||
|
||||
export default memo(ParamImageToImageStrength);
|
||||
@@ -12,7 +12,7 @@ type Props = {
|
||||
onChange: (v: number) => void;
|
||||
};
|
||||
|
||||
const ImageToImageStrength = ({ value, onChange }: Props) => {
|
||||
export const DenoisingStrength = memo(({ value, onChange }: Props) => {
|
||||
const config = useAppSelector(selectImg2imgStrengthConfig);
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -42,6 +42,6 @@ const ImageToImageStrength = ({ value, onChange }: Props) => {
|
||||
/>
|
||||
</FormControl>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
||||
export default memo(ImageToImageStrength);
|
||||
DenoisingStrength.displayName = 'DenoisingStrength';
|
||||
|
||||
Reference in New Issue
Block a user