Skip to content

Commit

Permalink
Merge pull request #597 from woowacourse-teams/feat/596-apply-scroll-…
Browse files Browse the repository at this point in the history
…snap-library

Scroll Snap 기능을 라이브러리로 분리 및 적용
  • Loading branch information
solo5star authored Oct 17, 2023
2 parents 73996ac + bba639b commit 90fde31
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 672 deletions.
13 changes: 12 additions & 1 deletion client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"react-dom": "^18.2.0",
"react-icons": "^4.11.0",
"react-router-dom": "^6.14.1",
"styled-components": "^6.0.2"
"styled-components": "^6.0.2",
"yozm-cafe-react-scroll-snap": "^0.0.3"
},
"devDependencies": {
"@babel/core": "^7.22.5",
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/CafeDetailBottomSheet.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Suspense, useEffect } from 'react';
import { BsX } from 'react-icons/bs';
import { styled } from 'styled-components';
import { useScrollSnapGuard } from 'yozm-cafe-react-scroll-snap';
import useCafeMenus from '../hooks/useCafeMenus';
import type { Theme } from '../styles/theme';
import type { Cafe } from '../types';
import CafeMenuMiniList from './CafeMenuMiniList';
import OpeningHoursDetail from './OpeningHoursDetail';
import QueryErrorBoundary from './QueryErrorBoundary';
import useScrollSnapGuard from './ScrollSnap/hooks/useScrollSnapGuard';

type CafeDetailBottomSheetProps = {
cafe: Cafe;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/CafeMenuBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { Suspense, useEffect, useState } from 'react';
import { createPortal } from 'react-dom';
import { BsX } from 'react-icons/bs';
import { styled } from 'styled-components';
import { useScrollSnapGuard } from 'yozm-cafe-react-scroll-snap';
import useCafeMenus from '../hooks/useCafeMenus';
import type { Theme } from '../styles/theme';
import type { Cafe } from '../types';
import Resource from '../utils/Resource';
import CafeMenuList from './CafeMenuList';
import ImageModal from './ImageModal';
import QueryErrorBoundary from './QueryErrorBoundary';
import useScrollSnapGuard from './ScrollSnap/hooks/useScrollSnapGuard';

type CafeMenuBottomSheetProps = {
cafe: Cafe;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/ImageModal.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { MouseEventHandler } from 'react';
import { useState } from 'react';
import { styled } from 'styled-components';
import { useScrollSnapGuard } from 'yozm-cafe-react-scroll-snap';
import Resource from '../utils/Resource';
import useScrollSnapGuard from './ScrollSnap/hooks/useScrollSnapGuard';

type ImageModalProps = {
imageUrls: string[];
Expand Down
31 changes: 0 additions & 31 deletions client/src/components/ScrollSnap/components/ScrollSnap.tsx

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 90fde31

Please sign in to comment.