Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MRVDH committed May 30, 2024
1 parent c966ce8 commit 9ce969a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/apps/explorer/src/pages/block/[hash].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import DataRenderComponent from '@/components/data-render-component/data-render-
import { Badge, TabItem, Tabs } from '@kadena/react-ui';

import { useRouter } from 'next/router';
import React, { Key, useEffect, useState } from 'react';
import type { Key } from 'react';
import React, { useEffect, useState } from 'react';

const Block: React.FC = () => {
const router = useRouter();
Expand All @@ -19,8 +20,9 @@ const Block: React.FC = () => {
}
}, [router.asPath]);

const handleSelectedTab = (tab: Key) => {
const handleSelectedTab = (tab: Key): void => {
setSelectedTab(tab as string);
// eslint-disable-next-line @typescript-eslint/no-floating-promises
router.replace(`#${tab}`);
};

Expand Down

0 comments on commit 9ce969a

Please sign in to comment.