Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit b8d5479

Browse files
committed
Lint fixes
1 parent f9f0337 commit b8d5479

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

src/hooks/useLogStream.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
21
import { AxiosError, isAxiosError } from 'axios';
3-
import { LogStreamSchemaData } from '@/@types/parseable/api/stream';
4-
import { notifyError, notifySuccess } from '@/utils/notification';
5-
import { useMutation, useQuery } from 'react-query';
2+
import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
63
import {
74
createLogStream,
85
deleteLogStream,
96
detectLogStreamSchema,
107
getLogStreamList,
118
updateLogStream,
129
} from '@/api/logStream';
10+
import { notifyError, notifySuccess } from '@/utils/notification';
11+
import { useMutation, useQuery } from 'react-query';
1312

13+
import { LogStreamSchemaData } from '@/@types/parseable/api/stream';
1414

1515
type CreateStreamOpts = {
1616
streamName: string;

src/pages/Home/CreateStreamModal.tsx

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
import _ from 'lodash';
2-
import styles from './styles/CreateStreamModal.module.css';
3-
import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
4-
import { CreatableSelect } from '@/components/Misc/CreatableSelect';
5-
import {
6-
FC,
7-
useCallback,
8-
useEffect,
9-
useState
10-
} from 'react';
11-
import { GetInputPropsReturnType, UseFormReturnType } from 'node_modules/@mantine/form/lib/types';
12-
import { IconInfoCircleFilled, IconPlus } from '@tabler/icons-react';
13-
import { LogStreamSchemaData } from '@/@types/parseable/api/stream';
14-
import { notifyError } from '@/utils/notification';
15-
import { useForm } from '@mantine/form';
16-
import { useLogStream } from '@/hooks/useLogStream';
171
import {
182
ActionIcon,
193
Box,
@@ -34,7 +18,18 @@ import {
3418
ThemeIcon,
3519
Tooltip,
3620
} from '@mantine/core';
21+
import { FC, useCallback, useEffect, useState } from 'react';
22+
import { GetInputPropsReturnType, UseFormReturnType } from 'node_modules/@mantine/form/lib/types';
23+
import { IconInfoCircleFilled, IconPlus } from '@tabler/icons-react';
24+
import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
3725

26+
import { CreatableSelect } from '@/components/Misc/CreatableSelect';
27+
import { LogStreamSchemaData } from '@/@types/parseable/api/stream';
28+
import _ from 'lodash';
29+
import { notifyError } from '@/utils/notification';
30+
import styles from './styles/CreateStreamModal.module.css';
31+
import { useForm } from '@mantine/form';
32+
import { useLogStream } from '@/hooks/useLogStream';
3833

3934
const { toggleCreateStreamModal } = appStoreReducers;
4035

0 commit comments

Comments
 (0)