fix mapper table bugs (#2093)
* fix mapperTableBugs * use link with button * add props
This commit is contained in:
parent
158bd07398
commit
42d8c31e84
1 changed files with 14 additions and 9 deletions
|
@ -349,22 +349,27 @@ export default function DetailSettings() {
|
|||
}
|
||||
loader={loader}
|
||||
key={key}
|
||||
isPaginated
|
||||
ariaLabelKey="identity-providers:mappersList"
|
||||
searchPlaceholderKey="identity-providers:searchForMapper"
|
||||
toolbarItem={
|
||||
<ToolbarItem>
|
||||
<Link
|
||||
to={toIdentityProviderAddMapper({
|
||||
realm,
|
||||
alias: alias!,
|
||||
providerId: provider.providerId!,
|
||||
tab: "mappers",
|
||||
})}
|
||||
<Button
|
||||
id="add-mapper-button"
|
||||
component={(props) => (
|
||||
<Link
|
||||
{...props}
|
||||
to={toIdentityProviderAddMapper({
|
||||
realm,
|
||||
alias: alias!,
|
||||
providerId: provider.providerId!,
|
||||
tab: "mappers",
|
||||
})}
|
||||
/>
|
||||
)}
|
||||
data-testid="addMapper"
|
||||
>
|
||||
{t("addMapper")}
|
||||
</Link>
|
||||
</Button>
|
||||
</ToolbarItem>
|
||||
}
|
||||
columns={[
|
||||
|
|
Loading…
Reference in a new issue