Showing 2 of 2 total issues
Draggable
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export default class Draggable {
constructor(normalStyles, movingStyles) {
this.normalStyles = normalStyles;
this.movingStyles = movingStyles;
this.mainElement = null;
Function Main
has 155 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
export const Main: React.FC = () => {
const refPreview = useRef<Preview>();
const [state, dispatch] = useReducer(reducer, {
...initialState,