Skip to content

Commit

Permalink
font changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaramakrishnan-techconative committed Dec 7, 2023
1 parent a99f4b0 commit 29f5626
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions src/core/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,19 @@ export function HeaderAndQueryTable(
<TableCell style={tableRowStyle} width={"30%"} align='left'>
<FormControl size='small' fullWidth={true}>
<InputLabel>{translate("SELECT") + " " + translate("TYPE")}</InputLabel>
<Select name="wm-webservice-new-param-type" onChange={(e) => handleChangeType(e, index)} value={data.type} label={translate("Select Type")} data-testid="param-type">
<ListSubheader>{translate("UI_TYPES")}</ListSubheader>
<Select
MenuProps={{
PaperProps: {
style: {
height: '300px', // Set the maximum height of the dropdown menu
},
},
}} name="wm-webservice-new-param-type" onChange={(e) => handleChangeType(e, index)} value={data.type} label={translate("Select Type")} data-testid="param-type">
<ListSubheader sx={{ fontWeight: 700, color: 'black' }}>{translate("UI_TYPES")}</ListSubheader>
{selectTypes.UITypes.map((type) => <MenuItem title={type.value} key={type.value} value={type.value}>{type.label}</MenuItem>)}
<ListSubheader>{translate("SERVER_SIDE") + " " + translate("PROPERTIES")}</ListSubheader>
<ListSubheader sx={{ fontWeight: 700, color: 'black' }}>{translate("SERVER_SIDE_PROPERTIES")}</ListSubheader>
{selectTypes.ServerSideProperties.map((type) => <MenuItem title={type.value} key={type.value} value={type.value}>{type.label}</MenuItem>)}
<ListSubheader>{translate("APPENVIRONMENT") + " " + translate("PROPERTIES")}</ListSubheader>
<ListSubheader sx={{ fontWeight: 700, color: 'black' }}>{translate("APPENVIRONMENT") + " " + translate("PROPERTIES")}</ListSubheader>
{getAppEnvProperties()}
</Select>
</FormControl>
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"LONG": "Long",
"STRING": "String",
"PROPERTIES": "Properties",
"SERVER_SIDE ": "Server Side",
"SERVER_SIDE_PROPERTIES": "Server Side Properties",
"CURRENT": "Current",
"TIMESTAMP": "Timestamp",
"USERID": "UserID",
"LOGGEDIN": "LoggedIn",
"USERNAME": "Username",
"APPENVIRONMENT": "AppEnvironment",
"APPENVIRONMENT": "App Environment",
"OPTION": "Option",
"CONTENT": "Content",
"REQUEST": "Request",
Expand Down

0 comments on commit 29f5626

Please sign in to comment.