refactor(web): replace CRA with Vite
This commit is contained in:
@@ -17,7 +17,7 @@ export default function Edge({
|
||||
const { flowActive, onStepAdd, isCreateStepPending } =
|
||||
useContext(EdgesContext);
|
||||
|
||||
const [edgePath, labelX, labelY] = getStraightPath({
|
||||
const [, labelX, labelY] = getStraightPath({
|
||||
sourceX,
|
||||
sourceY,
|
||||
targetX,
|
||||
|
||||
@@ -8,7 +8,7 @@ export const NodeWrapper = styled(Box)(({ theme }) => ({
|
||||
padding: theme.spacing(0, 2.5),
|
||||
}));
|
||||
|
||||
export const NodeInnerWrapper = styled(Box)(({ theme }) => ({
|
||||
export const NodeInnerWrapper = styled(Box)(() => ({
|
||||
maxWidth: 900,
|
||||
flex: 1,
|
||||
}));
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Stack } from '@mui/material';
|
||||
import { styled } from '@mui/material/styles';
|
||||
|
||||
export const EditorWrapper = styled(Stack)(({ theme }) => ({
|
||||
export const EditorWrapper = styled(Stack)(() => ({
|
||||
flexGrow: 1,
|
||||
'& > div': {
|
||||
flexGrow: 1,
|
||||
|
||||
Reference in New Issue
Block a user