fix mapper table bugs (#2093)

* fix mapperTableBugs

* use link with button

* add props
This commit is contained in:
Jenny 2022-02-15 14:42:04 -05:00 committed by GitHub
parent 158bd07398
commit 42d8c31e84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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={[