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 Jul 4, 2023
1 parent 3ec6820 commit 5acd1f0
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,7 @@ import {
import { RiAddLine } from 'react-icons/ri';

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

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

useDocumentTitleEffect(
(setDocumentTitle) => setDocumentTitle('Tokens management'),
[]
);
const { isOpen, onOpen, onClose } = useDisclosure();

const getActiveTokens = async () => {
Expand Down

0 comments on commit 5acd1f0

Please sign in to comment.