Skip to content

Commit

Permalink
refactor: 응원 모달 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungjjeong committed Aug 29, 2024
1 parent 65aa90a commit d9f0256
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Button } from '@/components/atoms';
import { BottomSheet, BottomSheetProps } from '@/components/molecules';
import { DetailCheerItemSelected } from '@/features/record-detail';
import { flex, grid } from '@/styled-system/patterns';

import { DetailCheerItemSelected } from '../types';
import { CheerItem } from './cheer-item';

type CheerBottomSheet = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DetailCheerItem } from '@/features/record-detail';
import { css, cva } from '@/styled-system/css';

import { DetailCheerItem } from '../types';

type CheerItem = {
isSelected?: boolean;
onClick?: () => void;
Expand Down
2 changes: 2 additions & 0 deletions components/molecules/cheer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './cheer-bottom-sheet';
export * from './cheer-item';
1 change: 1 addition & 0 deletions components/molecules/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './bottom-sheet';
export * from './cheer';
export * from './dialog';
export * from './global-navigation-bar';
export * from './header-bar';
Expand Down
2 changes: 0 additions & 2 deletions features/record-detail/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export * from './cheer-bottom-sheet';
export * from './cheer-item';
export * from './cheer-modal';
export * from './cheer-progress';
export * from './date-picker';
Expand Down
3 changes: 2 additions & 1 deletion features/record-detail/sections/detail-cheer-fab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import { useState } from 'react';

import { CheerBottomSheet } from '@/components/molecules';
import { useBottomSheet, useToast } from '@/hooks';
import { css } from '@/styled-system/css';

import { useCheer, useCheerEligibility, useCheerPreviewList } from '../apis';
import { CheerBottomSheet, CheerProgress } from '../components';
import { CheerProgress } from '../components';
import { initialCheerList } from '../data';
import { DetailCheerItemSelected, RecordDetailType } from '../types';

Expand Down
3 changes: 2 additions & 1 deletion features/record-detail/sections/detail-cheer-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import { useState } from 'react';

import { CheerItem } from '@/components/molecules';
import { useDragScroll, useModal } from '@/hooks';
import { css } from '@/styled-system/css';
import { flex } from '@/styled-system/patterns';

import { useCheerPreviewList } from '../apis';
import { CheerItem, CheerModal } from '../components';
import { CheerModal } from '../components';
import { RecordDetailType } from '../types';

export const DetailCheerModalSection = ({
Expand Down

0 comments on commit d9f0256

Please sign in to comment.