Skip to content

Commit

Permalink
prettier:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Sep 21, 2022
1 parent 21bd19b commit 0516aa9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions src/blocks/Item/Edit.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React from "react";
import { connect } from "react-redux";
import { isArray } from "lodash";
import config from "@plone/volto/registry";
import { BlockDataForm, SidebarPortal } from "@plone/volto/components";
import SlateEditor from "@plone/volto-slate/editor/SlateEditor";
import { handleKey } from "@plone/volto-slate/blocks/Text/keyboard";
import React from 'react';
import { connect } from 'react-redux';
import { isArray } from 'lodash';
import config from '@plone/volto/registry';
import { BlockDataForm, SidebarPortal } from '@plone/volto/components';
import SlateEditor from '@plone/volto-slate/editor/SlateEditor';
import { handleKey } from '@plone/volto-slate/blocks/Text/keyboard';
import {
uploadContent,
saveSlateBlockSelection,
} from "@plone/volto-slate/actions";
} from '@plone/volto-slate/actions';

import Item from "./Item";
import getSchema from "./schema";
import Item from './Item';
import getSchema from './schema';

export const createSlateParagraph = (text) => {
return isArray(text) ? text : config.settings.slate.defaultValue();
Expand All @@ -36,7 +36,7 @@ const Edit = (props) => {
editor.getBlockProps = () => props;
return editor;
},
[props]
[props],
);

const handleFocus = React.useCallback(() => {
Expand Down Expand Up @@ -100,5 +100,5 @@ export default connect(
{
uploadContent,
saveSlateBlockSelection, // needed as editor blockProps
}
},
)(Edit);
8 changes: 4 additions & 4 deletions src/blocks/Item/View.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react";
import Item from "./Item";
import React from 'react';
import Item from './Item';

import { isArray } from "lodash";
import { serializeNodes } from "@plone/volto-slate/editor/render";
import { isArray } from 'lodash';
import { serializeNodes } from '@plone/volto-slate/editor/render';

export const serializeText = (text) => {
return isArray(text) ? serializeNodes(text) : text;
Expand Down

0 comments on commit 0516aa9

Please sign in to comment.