Skip to content

Commit

Permalink
style: lint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Sep 23, 2024
1 parent 301ea2d commit 662f872
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 14 deletions.
3 changes: 2 additions & 1 deletion client/src/hooks/useAddBillFunnel.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {BillInfo} from '@pages/BillPage/AddBillFunnel';
import {useEffect, useState} from 'react';

import {BillInfo} from '@pages/BillPage/AddBillFunnel';

import useRequestGetCurrentMembers from './queries/member/useRequestGetCurrentMembers';

export type BillStep = 'title' | 'price' | 'members';
Expand Down
12 changes: 8 additions & 4 deletions client/src/hooks/useMembersStep.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import {BillInfo} from '@pages/BillPage/AddBillFunnel';
import {useEffect, useState} from 'react';
import {Member} from 'types/serviceType';
import useRequestPostMembers from './queries/member/useRequestPostMembers';
import useRequestPostBill from './queries/bill/useRequestPostBill';
import {useNavigate} from 'react-router-dom';

import {BillInfo} from '@pages/BillPage/AddBillFunnel';
import {Member} from 'types/serviceType';

import getEventIdByUrl from '@utils/getEventIdByUrl';

import REGEXP from '@constants/regExp';

import useRequestPostMembers from './queries/member/useRequestPostMembers';
import useRequestPostBill from './queries/bill/useRequestPostBill';
import {BillStep} from './useAddBillFunnel';

interface Props {
Expand Down
2 changes: 2 additions & 0 deletions client/src/hooks/usePriceStep.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {useCallback} from 'react';

import {BillInfo} from '@pages/BillPage/AddBillFunnel';

import {BillStep} from './useAddBillFunnel';

interface Props {
Expand Down
7 changes: 5 additions & 2 deletions client/src/hooks/useTitleStep.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import REGEXP from '@constants/regExp';
import {BillInfo} from '@pages/BillPage/AddBillFunnel';
import {useState} from 'react';

import {BillInfo} from '@pages/BillPage/AddBillFunnel';

import REGEXP from '@constants/regExp';

import {BillStep} from './useAddBillFunnel';

interface Props {
Expand Down
3 changes: 2 additions & 1 deletion client/src/pages/BillPage/AddBillFunnel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import {useEffect, useState} from 'react';
import useRequestGetCurrentMembers from '@hooks/queries/member/useRequestGetCurrentMembers';
import {Member} from 'types/serviceType';

import useAddBillFunnel from '@hooks/useAddBillFunnel';

import {Back, MainLayout, TopNav} from '@components/Design';

import PriceStep from './steps/PriceStep';
import {TitleStep} from './steps/TitleStep';
import MembersStep from './steps/MembersStep';
import useAddBillFunnel from '@hooks/useAddBillFunnel';

export interface BillInfo {
price: string;
Expand Down
6 changes: 4 additions & 2 deletions client/src/pages/BillPage/steps/MembersStep.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import {css} from '@emotion/react';

import Top from '@components/Design/components/Top/Top';
import ChipButton from '@components/Design/components/ChipButton/ChipButton';
import {Member} from 'types/serviceType';

import useMembersStep from '@hooks/useMembersStep';
import {BillStep} from '@hooks/useAddBillFunnel';

import {FixedButton, Flex, LabelInput, Text} from '@components/Design';

import {BillInfo} from '../AddBillFunnel';
import useMembersStep from '@hooks/useMembersStep';
import {BillStep} from '@hooks/useAddBillFunnel';

interface Props {
billInfo: BillInfo;
Expand Down
5 changes: 3 additions & 2 deletions client/src/pages/BillPage/steps/PriceStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import AmountInput from '@components/AmountInput/AmountInput';
import NumberKeyboard from '@components/Design/components/NumberKeyboard/NumberKeyboard';
import Top from '@components/Design/components/Top/Top';

import usePriceStep from '@hooks/usePriceStep';
import {BillStep} from '@hooks/useAddBillFunnel';

import {FixedButton} from '@components/Design';

import {BillInfo} from '../AddBillFunnel';
import usePriceStep from '@hooks/usePriceStep';
import {BillStep} from '@hooks/useAddBillFunnel';

interface Props {
billInfo: BillInfo;
Expand Down
5 changes: 3 additions & 2 deletions client/src/pages/BillPage/steps/TitleStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import {css} from '@emotion/react';

import Top from '@components/Design/components/Top/Top';

import useTitleStep from '@hooks/useTitleStep';
import {BillStep} from '@hooks/useAddBillFunnel';

import {FixedButton, LabelInput} from '@components/Design';

import {BillInfo} from '../AddBillFunnel';
import useTitleStep from '@hooks/useTitleStep';
import {BillStep} from '@hooks/useAddBillFunnel';

interface Props {
billInfo: BillInfo;
Expand Down

0 comments on commit 662f872

Please sign in to comment.