fix: Rename toggleBoundingBoxDimension to flipBoundingBoxAxes

This commit is contained in:
blessedcoolant 2023-07-13 13:53:15 +12:00
parent b7a4f3c2cb
commit bc7c0f75a0
2 changed files with 4 additions and 4 deletions

View File

@ -240,7 +240,7 @@ export const canvasSlice = createSlice({
state.scaledBoundingBoxDimensions = scaledDimensions;
}
},
toggleBoundingBoxDimensions: (state) => {
flipBoundingBoxAxes: (state) => {
const [currWidth, currHeight] = [
state.boundingBoxDimensions.width,
state.boundingBoxDimensions.height,
@ -931,7 +931,7 @@ export const {
setBoundingBoxDimensions,
setBoundingBoxPreviewFill,
setBoundingBoxScaleMethod,
toggleBoundingBoxDimensions,
flipBoundingBoxAxes,
setBrushColor,
setBrushSize,
setCanvasContainerDimensions,

View File

@ -1,7 +1,7 @@
import { Flex, Spacer, Text } from '@chakra-ui/react';
import { useAppDispatch } from 'app/store/storeHooks';
import IAIIconButton from 'common/components/IAIIconButton';
import { toggleBoundingBoxDimensions } from 'features/canvas/store/canvasSlice';
import { flipBoundingBoxAxes } from 'features/canvas/store/canvasSlice';
import { useTranslation } from 'react-i18next';
import { MdOutlineSwapVert } from 'react-icons/md';
import ParamAspectRatio from '../../Core/ParamAspectRatio';
@ -47,7 +47,7 @@ export default function ParamBoundingBoxSize() {
size="sm"
icon={<MdOutlineSwapVert />}
fontSize={20}
onClick={() => dispatch(toggleBoundingBoxDimensions())}
onClick={() => dispatch(flipBoundingBoxAxes())}
/>
</Flex>
<ParamBoundingBoxWidth />