Forms: Remove usage of gf-form textarea and help icons (#70561)

This commit is contained in:
Joao Silva
2023-06-23 19:07:28 +09:00
committed by GitHub
parent 24efcc54d2
commit cebc180e5b
5 changed files with 21 additions and 47 deletions

View File

@@ -21,9 +21,7 @@ export const LdapUserGroups = ({ groups, showAttributeMapping }: Props) => {
<th>
Organization
<Tooltip placement="top" content="Only the first match for an Organization will be used" theme={'info'}>
<span className="gf-form-help-icon">
<Icon name="info-circle" />
</span>
<Icon name="info-circle" />
</Tooltip>
</th>
<th>Role</th>
@@ -39,14 +37,10 @@ export const LdapUserGroups = ({ groups, showAttributeMapping }: Props) => {
<td>{group.orgRole}</td>
) : (
<td>
<span className="text-warning">
No match
<Tooltip placement="top" content="No matching groups found" theme={'info'}>
<span className="gf-form-help-icon">
<Icon name="info-circle" />
</span>
</Tooltip>
</span>
<span className="text-warning">No match</span>
<Tooltip placement="top" content="No matching groups found" theme={'info'}>
<Icon name="info-circle" />
</Tooltip>
</td>
)}
</tr>

View File

@@ -33,14 +33,10 @@ export const LdapUserTeams = ({ teams, showAttributeMapping }: Props) => {
<>
<td />
<td>
<div className="text-warning">
No match
<Tooltip placement="top" content="No matching teams found" theme={'info'}>
<span className="gf-form-help-icon">
<Icon name="info-circle" />
</span>
</Tooltip>
</div>
<span className="text-warning">No match</span>
<Tooltip placement="top" content="No matching teams found" theme={'info'}>
<Icon name="info-circle" />
</Tooltip>
</td>
</>
)}