Skip to content

Commit abb5303

Browse files
committed
Revert formatName
Signed-off-by: Trung Nguyen <[email protected]>
1 parent 4e48879 commit abb5303

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

src/extension/ui/src/components/tile/Modal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import {
3838
getUnsupportedSecretMessage,
3939
MCP_POLICY_NAME,
4040
} from '../../Constants';
41-
import { formatName } from '../../formatName';
4241
import { useCatalogOperations } from '../../queries/useCatalog';
4342
import { useConfig } from '../../queries/useConfig';
4443
import useDDInfo from '../../queries/useDDInfo';
@@ -176,7 +175,7 @@ const ConfigurationModal = ({
176175
borderRadius: 1,
177176
}}
178177
/>
179-
{formatName(catalogItem.name)}
178+
{catalogItem.name}
180179
<Tooltip
181180
placement="right"
182181
title={

src/extension/ui/src/components/tile/Top.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Avatar, CardHeader, Switch, Tooltip, Typography } from '@mui/material';
22

33
import { CatalogItemRichened } from '../../types/catalog';
4-
import { formatName } from '../../formatName';
54
import { useEffect, useState } from 'react';
65

76
type TopProps = {
@@ -43,16 +42,14 @@ export default function Top({ item, onToggleRegister }: TopProps) {
4342
color: 'text.primary',
4443
}}
4544
>
46-
{formatName(item.name)}
45+
{item.name}
4746
</Typography>
4847
}
4948
action={
5049
item.canRegister ? (
5150
<Tooltip
5251
title={
53-
item.registered
54-
? `Disable ${formatName(item.name)}`
55-
: `Enable ${formatName(item.name)}`
52+
item.registered ? `Disable ${item.name}` : `Enable ${item.name}`
5653
}
5754
>
5855
<Switch
@@ -67,9 +64,7 @@ export default function Top({ item, onToggleRegister }: TopProps) {
6764
/>
6865
</Tooltip>
6966
) : (
70-
<Tooltip
71-
title={`Enabling ${formatName(item.name)} requires configuration`}
72-
>
67+
<Tooltip title={`Enabling ${item.name} requires configuration`}>
7368
<span>
7469
<Switch checked={false} disabled />
7570
</span>

src/extension/ui/src/formatName.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)