Skip to content

Commit

Permalink
fix: fixes token management header
Browse files Browse the repository at this point in the history
Signed-off-by: Léo-Paul HAUET <[email protected]>
  • Loading branch information
IC-1101asterisk committed Jun 15, 2023
1 parent 3ec6820 commit e5a399d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routes/tokens/ApiTokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import {
import { RiAddLine } from 'react-icons/ri';

import { listActiveTokens } from '@/api/BearerTokenApi';
import { useAssetListDocumentTitleEffect } from '@/hooks/useDocumentTitleEffect';
import useKeyFromPath from '@/hooks/useKeyFromPath';
import { PATHS } from '@/paths';
import ApiToken from '@/routes/tokens/components/ApiToken';
import { BearerTokenT, NewBearerTokenT } from '@/types/BearerTokenTypes';

Expand All @@ -22,7 +25,8 @@ import GenerateTokenModal from './components/GenerateTokenModal';
const ApiTokens = (): JSX.Element => {
const [activeTokens, setActiveTokens] = useState<BearerTokenT[]>([]);
const [generatedToken, setGeneratedToken] = useState<NewBearerTokenT>();

const key = useKeyFromPath(PATHS.MANAGE_TOKENS);
useAssetListDocumentTitleEffect('Tokens management', key);
const { isOpen, onOpen, onClose } = useDisclosure();

const getActiveTokens = async () => {
Expand Down

0 comments on commit e5a399d

Please sign in to comment.