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,6 +1,6 @@
|
|||
import { Dispatch, SetStateAction } from 'react';
|
||||
import { IConfiguration } from '../../../Interfaces/IConfiguration';
|
||||
import { fetchConfiguration } from '../../API/api';
|
||||
import { FetchConfiguration } from '../../API/api';
|
||||
import { IEditorState } from '../../../Interfaces/IEditorState';
|
||||
import { LoadState } from './Load';
|
||||
import { GetDefaultEditorState } from '../../../utils/default';
|
||||
|
@ -10,7 +10,7 @@ export function NewEditor(
|
|||
setLoaded: Dispatch<SetStateAction<boolean>>
|
||||
): void {
|
||||
// Fetch the configuration from the API
|
||||
fetchConfiguration()
|
||||
FetchConfiguration()
|
||||
.then((configuration: IConfiguration) => {
|
||||
// Set the editor from the given properties of the API
|
||||
const editorState: IEditorState = GetDefaultEditorState(configuration);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue