Skip to content

Commit d6045e4

Browse files
committed
Rename util
1 parent b790af3 commit d6045e4

File tree

2 files changed

+6
-6
lines changed
  • src/components

2 files changed

+6
-6
lines changed

src/components/Agentic/IncidentTemplate/MCPServerDialog/ServerStep/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { EditorView } from "@codemirror/view";
44
import CodeMirror from "@uiw/react-codemirror";
55
import { useTheme } from "styled-components";
66
import { sendUserActionTrackingEvent } from "../../../../../utils/actions/sendUserActionTrackingEvent";
7-
import { getCodeFontFamilyRulesValue } from "../../../../common/App/styles";
7+
import { getCodeFontFamilyValue } from "../../../../common/App/styles";
88
import { NewButton } from "../../../../common/v3/NewButton";
99
import { trackingEvents } from "../../../tracking";
1010
import { Footer } from "../Footer";
1111
import * as s from "./styles";
1212
import 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={{

src/components/common/App/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const getMainFont = (customFont: string) => {
4242
`;
4343
};
4444

45-
export const getCodeFontFamilyRulesValue = (customFont: string): string => {
45+
export const getCodeFontFamilyValue = (customFont: string): string => {
4646
const customFontString = customFont ? `"${customFont}"` : "";
4747

4848
let osFontString = "";
@@ -75,7 +75,7 @@ export const getCodeFontFamilyRulesValue = (customFont: string): string => {
7575
};
7676

7777
export const getCodeFont = (customFont: string) => {
78-
const value = getCodeFontFamilyRulesValue(customFont);
78+
const value = getCodeFontFamilyValue(customFont);
7979

8080
return css`
8181
font-family: ${value};

0 commit comments

Comments
 (0)