Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrov-site committed Apr 17, 2024
1 parent 1cb6eeb commit ef03c64
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
25 changes: 14 additions & 11 deletions frontend/src/components/ActionsToolbar/index.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { useSelector } from 'react-redux';
import { DistributeHorizontal, DistributeVertical } from 'react-bootstrap-icons';
import {
DistributeHorizontal,
DistributeVertical,
} from 'react-bootstrap-icons';

function DisplayIconView() {
const { direction } = useSelector((state) => state.editor);
switch (direction) {
case 'horizontal':
return <DistributeHorizontal />;
case 'vertical':
return <DistributeVertical />;
default:
return <DistributeHorizontal />;
}
const { direction } = useSelector((state) => state.editor);
switch (direction) {
case 'horizontal':
return <DistributeHorizontal />;
case 'vertical':
return <DistributeVertical />;
default:
return <DistributeHorizontal />;
}
}

export default DisplayIconView
export default DisplayIconView;
6 changes: 1 addition & 5 deletions frontend/src/pages/snippet/ActionsToolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import { useDispatch, useSelector } from 'react-redux';

import Button from 'react-bootstrap/Button';
import Col from 'react-bootstrap/Col';
import {
BoxArrowUp,
Files,
PlayFill,
} from 'react-bootstrap-icons';
import { BoxArrowUp, Files, PlayFill } from 'react-bootstrap-icons';
import { actions } from '../../slices';
import { useAuth, useRunButton } from '../../hooks';
import DisplayIconView from '../../components/ActionsToolbar/index.jsx';
Expand Down

0 comments on commit ef03c64

Please sign in to comment.