consents wip

This commit is contained in:
jenny-s51 2021-06-08 13:56:03 -04:00
parent 5ea204b003
commit 67b6c52c65

View file

@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react"; import React, { useState } from "react";
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { Button, Label, PageSection } from "@patternfly/react-core"; import { Label } from "@patternfly/react-core";
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState"; import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable"; import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
import { emptyFormatter } from "../util"; import { emptyFormatter } from "../util";
@ -29,9 +29,11 @@ export const UserConsents = () => {
const [labelClicked, setLabelClicked] = useState(false); const [labelClicked, setLabelClicked] = useState(false);
useEffect(() => { // useEffect(() => {
console.log(labelClicked) // console.log(labelClicked)
}, [labelClicked]) // }, [key])
const [key, setKey] = useState(0);
const clientScopesRenderer = ({ const clientScopesRenderer = ({
grantedClientScopes, grantedClientScopes,
@ -68,6 +70,7 @@ export const UserConsents = () => {
<> <>
<KeycloakDataTable <KeycloakDataTable
loader={loader} loader={loader}
key={key}
ariaLabelKey="roles:roleList" ariaLabelKey="roles:roleList"
searchPlaceholderKey=" " searchPlaceholderKey=" "
columns={[ columns={[