From e0163ce494cb55c16986f7f45c84f4d4c14d866b Mon Sep 17 00:00:00 2001 From: Daniil Bobrov Date: Wed, 17 Apr 2024 14:45:44 +0300 Subject: [PATCH 01/14] added icons --- frontend/src/pages/snippet/ActionsToolbar.jsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/snippet/ActionsToolbar.jsx b/frontend/src/pages/snippet/ActionsToolbar.jsx index 6d6406c5..41800e3e 100644 --- a/frontend/src/pages/snippet/ActionsToolbar.jsx +++ b/frontend/src/pages/snippet/ActionsToolbar.jsx @@ -1,9 +1,9 @@ import { useTranslation } from 'react-i18next'; -import { useDispatch } from 'react-redux'; +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, DistributeHorizontal, DistributeVertical } from 'react-bootstrap-icons'; import { actions } from '../../slices'; import { useAuth, useRunButton } from '../../hooks'; @@ -14,7 +14,7 @@ function ActionsToolbar({ snippet }) { const { snippetData, code } = snippet; const { name: snippetName, ownerUsername } = snippetData; const { isLoggedIn } = useAuth(); - + const { direction } = useSelector((state) => state.editor); const handleShare = () => { dispatch( actions.openModal({ @@ -49,8 +49,19 @@ function ActionsToolbar({ snippet }) { } }; + const handleView = () => { + + } + return ( +