@@ -4,14 +4,14 @@ import { EditorView } from "@codemirror/view";
44import CodeMirror from "@uiw/react-codemirror" ;
55import { useTheme } from "styled-components" ;
66import { sendUserActionTrackingEvent } from "../../../../../utils/actions/sendUserActionTrackingEvent" ;
7- import { getCodeFontFamilyRulesValue } from "../../../../common/App/styles" ;
7+ import { getCodeFontFamilyValue } from "../../../../common/App/styles" ;
88import { NewButton } from "../../../../common/v3/NewButton" ;
99import { trackingEvents } from "../../../tracking" ;
1010import { Footer } from "../Footer" ;
1111import * as s from "./styles" ;
1212import type { ServerStepProps } from "./types" ;
1313
14- const placeholderText = JSON . stringify (
14+ const PLACEHOLDER_TEXT = JSON . stringify (
1515 {
1616 weather : {
1717 transport : "stdio" ,
@@ -36,7 +36,7 @@ export const ServerStep = ({
3636 "&" : {
3737 padding : "24px" ,
3838 borderRadius : "8px" ,
39- fontFamily : getCodeFontFamilyRulesValue ( theme . codeFont ) ,
39+ fontFamily : getCodeFontFamilyValue ( theme . codeFont ) ,
4040 fontSize : "14px" ,
4141 fontWeight : "500" ,
4242 backgroundColor : "#000 !important"
@@ -62,7 +62,7 @@ export const ServerStep = ({
6262 value = { connectionSettings }
6363 onChange = { onConnectionSettingsChange }
6464 extensions = { [ codeMirrorTheme , EditorView . lineWrapping , json ( ) ] }
65- placeholder = { placeholderText }
65+ placeholder = { PLACEHOLDER_TEXT }
6666 theme = { oneDark }
6767 height = { "343px" }
6868 basicSetup = { {
0 commit comments