feat(ui): tidy

This commit is contained in:
psychedelicious 2023-05-01 16:55:17 +10:00
parent 475b6bef53
commit 4d885653e9
2 changed files with 2 additions and 7 deletions

View File

@ -40,6 +40,8 @@ export const gallerySlice = createSlice({
action: PayloadAction<SelectedImage | undefined>
) => {
state.selectedImage = action.payload;
// TODO: if the user selects an image, disable the auto switch?
// state.shouldAutoSwitchToNewImages = false;
},
setGalleryImageMinimumWidth: (state, action: PayloadAction<number>) => {
state.galleryImageMinimumWidth = action.payload;

View File

@ -89,13 +89,6 @@ const ProgressImagePreview = () => {
onResizeStop={(e, direction, ref, delta, position) => {
const newRect: Partial<Rect> = {};
console.log(
ref.style.width,
ref.style.height,
position.x,
position.y
);
if (ref.style.width) {
newRect.width = ref.style.width;
}