Skip to content

Commit

Permalink
barrer
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliodiez committed Aug 10, 2024
1 parent 6c92569 commit 5066a7f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/common/components/inline-edit/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './use-submit-cancel-hook';
export * from './use-position-hook';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useCallback } from 'react';
import { addPxSuffix, calculateCoordinateValue } from './inline-edit.utils';
import { addPxSuffix, calculateCoordinateValue } from '../inline-edit.utils';
import { Coord, Size } from '@/core/model';

export const usePositionHook = (coords: Coord, size: Size, scale: number) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useRef, useState } from 'react';
import { EditType } from './inline-edit.model';
import { EditType } from '../inline-edit.model';

interface Configuration {
editType: EditType | undefined;
Expand Down
3 changes: 1 addition & 2 deletions src/common/components/inline-edit/inline-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Group } from 'react-konva';
import { Coord, Size } from '@/core/model';
import { HtmlEditWidget } from './components';
import { EditType } from './inline-edit.model';
import { useSubmitCancelHook } from './use-submit-cancel-hook';
import { usePositionHook } from './use-position-hook';
import { useSubmitCancelHook, usePositionHook } from './hooks';

interface Props {
coords: Coord;
Expand Down

0 comments on commit 5066a7f

Please sign in to comment.