Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Torrent committed Oct 14, 2021
1 parent 56b978f commit dcbafd1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/item/favorite/favoriteItem.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/MoveButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ MoveButton.defaultProps = {
id: '',
};

export default MoveButton
export default MoveButton;
2 changes: 1 addition & 1 deletion src/components/main/CopyButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ CopyButton.defaultProps = {
id: '',
};

export default CopyButton
export default CopyButton;
9 changes: 7 additions & 2 deletions src/components/main/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -30,7 +30,12 @@ const Home = () => {
<Main>
<FileUploader />
<ItemHeader />
<Items id={OWNED_ITEMS_ID} title={t('My Items')} items={List(ownItems)} headerElements={[ <NewItemButton fontSize="small" /> ]} />
<Items
id={OWNED_ITEMS_ID}
title={t('My Items')}
items={List(ownItems)}
headerElements={[<NewItemButton fontSize="small" />]}
/>
</Main>
);
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/main/ItemsGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/components/main/TreeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dcbafd1

Please sign in to comment.