diff --git a/packages/react-sdk-components/src/components/field/SemanticLink/SemanticLink.tsx b/packages/react-sdk-components/src/components/field/SemanticLink/SemanticLink.tsx index 57bc0ccd..f8f774c6 100644 --- a/packages/react-sdk-components/src/components/field/SemanticLink/SemanticLink.tsx +++ b/packages/react-sdk-components/src/components/field/SemanticLink/SemanticLink.tsx @@ -1,4 +1,4 @@ -import { Link } from '@mui/material'; +import { FormControl, FormLabel, Link } from '@mui/material'; import makeStyles from '@mui/styles/makeStyles'; import type { PConnFieldProps } from '../../../types/PConnProps'; @@ -53,6 +53,7 @@ interface SemanticLinkProps extends PConnFieldProps { export default function SemanticLink(props: SemanticLinkProps) { const { text, + label, resourcePayload = {}, resourceParams = {}, getPConnect, @@ -201,8 +202,15 @@ export default function SemanticLink(props: SemanticLinkProps) { } return ( - - {text} - + + {label} + {text ? ( + + {text} + + ) : ( + '---' + )} + ); }