Skip to content

Commit 1befade

Browse files
refactor: replace Link with AppLink in ExprField component
1 parent 14a1e2f commit 1befade

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/app/services/UniversalKey/ExprField.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { FormControl, InputLabel, OutlinedInput } from '@mui/material'
22
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'
3-
import Link from '@mui/material/Link'
43
import Tooltip from '@mui/material/Tooltip'
54
import React from 'react'
65
import ExprEditor from '../../editor/ExprEditor'
6+
import AppLink from '../../util/AppLink'
77

88
export type ExprFieldProps = {
99
error?: boolean
@@ -24,7 +24,7 @@ export function ExprField(props: ExprFieldProps): React.ReactNode {
2424
variant='outlined'
2525
data-testid={'code-' + props.name}
2626
>
27-
<InputLabel htmlFor={props.name} sx={{ padding: '0 50px 0 0' }}>
27+
<InputLabel htmlFor={props.name} sx={{ padding: '0 50px 0 0' }} shrink>
2828
<div style={{ display: 'flex', alignItems: 'center' }}>
2929
{props.label}
3030
<AppLink
@@ -35,7 +35,7 @@ export function ExprField(props: ExprFieldProps): React.ReactNode {
3535
<Tooltip title='Expr syntax'>
3636
<InfoOutlinedIcon />
3737
</Tooltip>
38-
</Link>
38+
</AppLink>
3939
</div>
4040
</InputLabel>
4141
<OutlinedInput

0 commit comments

Comments
 (0)