Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 committed Jan 24, 2025
1 parent f9f0337 commit b8d5479
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/hooks/useLogStream.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
import { AxiosError, isAxiosError } from 'axios';
import { LogStreamSchemaData } from '@/@types/parseable/api/stream';
import { notifyError, notifySuccess } from '@/utils/notification';
import { useMutation, useQuery } from 'react-query';
import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
import {
createLogStream,
deleteLogStream,
detectLogStreamSchema,
getLogStreamList,
updateLogStream,
} from '@/api/logStream';
import { notifyError, notifySuccess } from '@/utils/notification';
import { useMutation, useQuery } from 'react-query';

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

type CreateStreamOpts = {
streamName: string;
Expand Down
27 changes: 11 additions & 16 deletions src/pages/Home/CreateStreamModal.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
import _ from 'lodash';
import styles from './styles/CreateStreamModal.module.css';
import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
import { CreatableSelect } from '@/components/Misc/CreatableSelect';
import {
FC,
useCallback,
useEffect,
useState
} from 'react';
import { GetInputPropsReturnType, UseFormReturnType } from 'node_modules/@mantine/form/lib/types';
import { IconInfoCircleFilled, IconPlus } from '@tabler/icons-react';
import { LogStreamSchemaData } from '@/@types/parseable/api/stream';
import { notifyError } from '@/utils/notification';
import { useForm } from '@mantine/form';
import { useLogStream } from '@/hooks/useLogStream';
import {
ActionIcon,
Box,
Expand All @@ -34,7 +18,18 @@ import {
ThemeIcon,
Tooltip,
} from '@mantine/core';
import { FC, useCallback, useEffect, useState } from 'react';
import { GetInputPropsReturnType, UseFormReturnType } from 'node_modules/@mantine/form/lib/types';
import { IconInfoCircleFilled, IconPlus } from '@tabler/icons-react';
import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';

import { CreatableSelect } from '@/components/Misc/CreatableSelect';
import { LogStreamSchemaData } from '@/@types/parseable/api/stream';
import _ from 'lodash';
import { notifyError } from '@/utils/notification';
import styles from './styles/CreateStreamModal.module.css';
import { useForm } from '@mantine/form';
import { useLogStream } from '@/hooks/useLogStream';

const { toggleCreateStreamModal } = appStoreReducers;

Expand Down

0 comments on commit b8d5479

Please sign in to comment.