feat(ui): revised entity list action bars

- Global action bar on top
- Selected Entity action bar below
This commit is contained in:
psychedelicious
2024-09-06 19:38:48 +10:00
parent e1a66e22e9
commit 12e6f1be89
24 changed files with 494 additions and 172 deletions

View File

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

View File

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