From 480f8cf87749cbe0cd549fecabef8c470dc6a4b2 Mon Sep 17 00:00:00 2001 From: Flero Date: Mon, 4 Dec 2023 09:47:10 +1030 Subject: [PATCH] fix(web): set documentation editor font to preferences value --- packages/bruno-app/src/components/Documentation/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/Documentation/index.js b/packages/bruno-app/src/components/Documentation/index.js index 10e63a4dd..7b8b89425 100644 --- a/packages/bruno-app/src/components/Documentation/index.js +++ b/packages/bruno-app/src/components/Documentation/index.js @@ -3,7 +3,7 @@ import get from 'lodash/get'; import { updateRequestDocs } from 'providers/ReduxStore/slices/collections'; import { useTheme } from 'providers/Theme/index'; import { useState } from 'react'; -import { useDispatch } from 'react-redux'; +import { useDispatch, useSelector } from 'react-redux'; import { saveRequest } from 'providers/ReduxStore/slices/collections/actions'; import Markdown from 'components/MarkDown'; import CodeEditor from 'components/CodeEditor'; @@ -14,6 +14,7 @@ const Documentation = ({ item, collection }) => { const { storedTheme } = useTheme(); const [isEditing, setIsEditing] = useState(false); const docs = item.draft ? get(item, 'draft.request.docs') : get(item, 'request.docs'); + const preferences = useSelector((state) => state.app.preferences); const toggleViewMode = () => { setIsEditing((prev) => !prev); @@ -45,6 +46,7 @@ const Documentation = ({ item, collection }) => {