Merged PR 170: Add new eslint rules
- naming-convention - prefer-arrow-callback - func-style - import/no-default-export
This commit is contained in:
parent
3f58c5ba5e
commit
ad126c6c28
65 changed files with 781 additions and 784 deletions
|
@ -1,5 +1,5 @@
|
|||
import { Dispatch, SetStateAction } from 'react';
|
||||
import { getCurrentHistory } from '../Components/Editor/Editor';
|
||||
import { GetCurrentHistory } from '../Components/Editor/Editor';
|
||||
import { IConfiguration } from '../Interfaces/IConfiguration';
|
||||
import { IEditorState } from '../Interfaces/IEditorState';
|
||||
import { IHistoryState } from '../Interfaces/IHistoryState';
|
||||
|
@ -38,7 +38,7 @@ const appendNewState = (
|
|||
): void => {
|
||||
const state: IHistoryState = JSON.parse(eventInitDict?.detail.state);
|
||||
ReviveState(state);
|
||||
const history = getCurrentHistory(editorState.history, editorState.historyCurrentStep);
|
||||
const history = GetCurrentHistory(editorState.history, editorState.historyCurrentStep);
|
||||
|
||||
history.push(state);
|
||||
setHistory(history);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue