Skip to content

Commit f393efe

Browse files
authored
Merge pull request #189 from DouglasNeuroInformatics/revert-186-main
Revert "fix: linting error in axios.ts"
2 parents 4ef894c + 8f294f4 commit f393efe

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

web/src/features/dataset/components/DatasetCard.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import type { $DatasetCardProps } from '@databank/core';
2-
import { licensesObjects } from '@databank/core';
3-
import { Badge, Button, Card, Tooltip } from '@douglasneuroinformatics/libui/components';
2+
import { Badge, Button, Card } from '@douglasneuroinformatics/libui/components';
43
import { useTranslation } from '@douglasneuroinformatics/libui/hooks';
54
import { useNavigate } from '@tanstack/react-router';
6-
import { InfoIcon } from 'lucide-react';
75

86
import { useDeleteDataset } from '../hooks/useDeleteDataset';
97

@@ -50,12 +48,6 @@ const DatasetCard = ({
5048
</li>
5149
<li key={id + license}>
5250
{t('datasetLicense')}: {license}
53-
<Tooltip>
54-
<Tooltip.Trigger className="mx-1 inline border-0" size="icon">
55-
<InfoIcon />
56-
</Tooltip.Trigger>
57-
<Tooltip.Content>{licensesObjects[license]?.name}</Tooltip.Content>
58-
</Tooltip>
5951
</li>
6052
<li key={id + 'managerIds'}>
6153
{t('managerId')}:{' '}

web/src/services/axios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ axios.interceptors.request.use((config) => {
2323
axios.interceptors.response.use(
2424
(response) => response,
2525
(error) => {
26-
const addNotification = useNotificationsStore((state) => state.addNotification);
26+
const notifications = useNotificationsStore.getState();
2727
if (!isAxiosError(error)) {
2828
addNotification({
2929
message: i18n.t({

0 commit comments

Comments
 (0)