Skip to content

Commit

Permalink
refactor: replace Link with AppLink in ExprField component
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Dec 12, 2024
1 parent 14a1e2f commit 1befade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/app/services/UniversalKey/ExprField.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FormControl, InputLabel, OutlinedInput } from '@mui/material'
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'
import Link from '@mui/material/Link'
import Tooltip from '@mui/material/Tooltip'
import React from 'react'
import ExprEditor from '../../editor/ExprEditor'
import AppLink from '../../util/AppLink'

export type ExprFieldProps = {
error?: boolean
Expand All @@ -24,7 +24,7 @@ export function ExprField(props: ExprFieldProps): React.ReactNode {
variant='outlined'
data-testid={'code-' + props.name}
>
<InputLabel htmlFor={props.name} sx={{ padding: '0 50px 0 0' }}>
<InputLabel htmlFor={props.name} sx={{ padding: '0 50px 0 0' }} shrink>
<div style={{ display: 'flex', alignItems: 'center' }}>
{props.label}
<AppLink
Expand All @@ -35,7 +35,7 @@ export function ExprField(props: ExprFieldProps): React.ReactNode {
<Tooltip title='Expr syntax'>
<InfoOutlinedIcon />
</Tooltip>
</Link>
</AppLink>
</div>
</InputLabel>
<OutlinedInput
Expand Down

0 comments on commit 1befade

Please sign in to comment.