fixed types
This commit is contained in:
parent
e87cfb6a1c
commit
ff1fbccfdc
4 changed files with 9 additions and 9 deletions
|
@ -24,7 +24,7 @@
|
||||||
"@patternfly/react-table": "4.23.0",
|
"@patternfly/react-table": "4.23.0",
|
||||||
"file-saver": "^2.0.2",
|
"file-saver": "^2.0.2",
|
||||||
"i18next": "^19.6.2",
|
"i18next": "^19.6.2",
|
||||||
"keycloak-admin": "1.14.8",
|
"keycloak-admin": "1.14.9",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
"react": "^16.8.5",
|
"react": "^16.8.5",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import React, { FormEvent, useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
import {
|
import {
|
||||||
|
@ -38,7 +38,7 @@ export const CreateInitialAccessToken = () => {
|
||||||
{ realm },
|
{ realm },
|
||||||
clientToken
|
clientToken
|
||||||
);
|
);
|
||||||
setToken(access.token);
|
setToken(access.token!);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
addAlert(t("tokenSaveError", { error }), AlertVariant.danger);
|
addAlert(t("tokenSaveError", { error }), AlertVariant.danger);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,13 +40,13 @@ export const InitialAccessTokenList = () => {
|
||||||
{
|
{
|
||||||
name: "timestamp",
|
name: "timestamp",
|
||||||
displayKey: "clients:timestamp",
|
displayKey: "clients:timestamp",
|
||||||
cellRenderer: (row) => moment(row.timestamp * 1000).format("LLL"),
|
cellRenderer: (row) => moment(row.timestamp! * 1000).format("LLL"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "expiration",
|
name: "expiration",
|
||||||
displayKey: "clients:expires",
|
displayKey: "clients:expires",
|
||||||
cellRenderer: (row) =>
|
cellRenderer: (row) =>
|
||||||
moment(row.timestamp * 1000 + row.expiration * 1000).fromNow(),
|
moment(row.timestamp! * 1000 + row.expiration! * 1000).fromNow(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "count",
|
name: "count",
|
||||||
|
|
|
@ -13477,10 +13477,10 @@ junk@^3.1.0:
|
||||||
resolved "https://registry.yarnpkg.com/junk/-/junk-3.1.0.tgz#31499098d902b7e98c5d9b9c80f43457a88abfa1"
|
resolved "https://registry.yarnpkg.com/junk/-/junk-3.1.0.tgz#31499098d902b7e98c5d9b9c80f43457a88abfa1"
|
||||||
integrity sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==
|
integrity sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==
|
||||||
|
|
||||||
keycloak-admin@1.14.8:
|
keycloak-admin@1.14.9:
|
||||||
version "1.14.8"
|
version "1.14.9"
|
||||||
resolved "https://registry.yarnpkg.com/keycloak-admin/-/keycloak-admin-1.14.8.tgz#c6935146eab94ba125761888b04442c51ec1d5e5"
|
resolved "https://registry.yarnpkg.com/keycloak-admin/-/keycloak-admin-1.14.9.tgz#f068e8580714c3b92987901cfe6c83bfba669a2a"
|
||||||
integrity sha512-1eX7HTL/C1M51QGWg47TiYNZrIhmv6ximyscghCZxd1waKC7jjo1vqHOZkBUBQDSFYDEq61b7hH64gbw2XOgYw==
|
integrity sha512-VaS6unTYLWuEkqb+FAY+c0Oo+ta505OxhOntCHLcgysMwRmL5pz6taVK8lUZ1ir/6QVto62adVQjmN5fMkpSWg==
|
||||||
dependencies:
|
dependencies:
|
||||||
axios "^0.21.0"
|
axios "^0.21.0"
|
||||||
camelize "^1.0.0"
|
camelize "^1.0.0"
|
||||||
|
|
Loading…
Reference in a new issue