From dcbafd17952d797d820232d80b7ca44fbe80c3b9 Mon Sep 17 00:00:00 2001 From: Julien Torrent Date: Thu, 14 Oct 2021 11:19:45 +0200 Subject: [PATCH] chore: format code --- cypress/integration/item/favorite/favoriteItem.spec.js | 2 +- src/components/common/MoveButton.js | 2 +- src/components/main/CopyButtons.js | 2 +- src/components/main/Home.js | 9 +++++++-- src/components/main/ItemsGrid.js | 4 ++-- src/components/main/TreeModal.js | 2 +- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/cypress/integration/item/favorite/favoriteItem.spec.js b/cypress/integration/item/favorite/favoriteItem.spec.js index aca75985c..88a185bc1 100644 --- a/cypress/integration/item/favorite/favoriteItem.spec.js +++ b/cypress/integration/item/favorite/favoriteItem.spec.js @@ -28,7 +28,7 @@ describe('Favorite Item', () => { cy.visit(HOME_PATH); }); - it('New button doesn\'t exists', () => { + it("New button doesn't exists", () => { cy.visit(FAVORITE_ITEMS_PATH); cy.get(`#${CREATE_ITEM_BUTTON_ID}`).should('not.exist'); }); diff --git a/src/components/common/MoveButton.js b/src/components/common/MoveButton.js index 7101172db..97b778215 100644 --- a/src/components/common/MoveButton.js +++ b/src/components/common/MoveButton.js @@ -44,4 +44,4 @@ MoveButton.defaultProps = { id: '', }; -export default MoveButton \ No newline at end of file +export default MoveButton; diff --git a/src/components/main/CopyButtons.js b/src/components/main/CopyButtons.js index fb9b52f32..e91440391 100644 --- a/src/components/main/CopyButtons.js +++ b/src/components/main/CopyButtons.js @@ -44,4 +44,4 @@ CopyButton.defaultProps = { id: '', }; -export default CopyButton \ No newline at end of file +export default CopyButton; diff --git a/src/components/main/Home.js b/src/components/main/Home.js index 56616d49c..b1644e0c0 100644 --- a/src/components/main/Home.js +++ b/src/components/main/Home.js @@ -11,7 +11,7 @@ import { HOME_ERROR_ALERT_ID, OWNED_ITEMS_ID } from '../../config/selectors'; import Loader from '../common/Loader'; import ErrorAlert from '../common/ErrorAlert'; import Main from './Main'; -import NewItemButton from "./NewItemButton"; +import NewItemButton from './NewItemButton'; const Home = () => { const { t } = useTranslation(); @@ -30,7 +30,12 @@ const Home = () => {
- ]} /> + ]} + />
); }; diff --git a/src/components/main/ItemsGrid.js b/src/components/main/ItemsGrid.js index 1b159c6d6..9668aced5 100644 --- a/src/components/main/ItemsGrid.js +++ b/src/components/main/ItemsGrid.js @@ -142,12 +142,12 @@ ItemsGrid.propTypes = { text: PropTypes.string, input: PropTypes.instanceOf(ItemSearchInput), }), - headerElements: PropTypes.arrayOf(PropTypes.element) + headerElements: PropTypes.arrayOf(PropTypes.element), }; ItemsGrid.defaultProps = { itemSearch: null, - headerElements: [] + headerElements: [], }; const StyledComponent = withStyles(styles)(ItemsGrid); diff --git a/src/components/main/TreeModal.js b/src/components/main/TreeModal.js index 95985fd36..3d83b5e05 100644 --- a/src/components/main/TreeModal.js +++ b/src/components/main/TreeModal.js @@ -53,7 +53,7 @@ const TreeModal = ({ itemIds, open, title, onClose, onConfirm, prevent }) => { case TREE_PREVENT_SELECTION.SELF_AND_CHILDREN: // if the previous item is disabled, its children will be disabled // and prevent selection on self - return parentIsDisabled || itemIds.find(x => x === iId); + return parentIsDisabled || itemIds.find((x) => x === iId); case TREE_PREVENT_SELECTION.NONE: default: return false;