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 { 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 { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
import { emptyFormatter } from "../util";
@ -29,9 +29,11 @@ export const UserConsents = () => {
const [labelClicked, setLabelClicked] = useState(false);
useEffect(() => {
console.log(labelClicked)
}, [labelClicked])
// useEffect(() => {
// console.log(labelClicked)
// }, [key])
const [key, setKey] = useState(0);
const clientScopesRenderer = ({
grantedClientScopes,
@ -68,6 +70,7 @@ export const UserConsents = () => {
<>
<KeycloakDataTable
loader={loader}
key={key}
ariaLabelKey="roles:roleList"
searchPlaceholderKey=" "
columns={[