diff --git a/index.html b/index.html index 1e52cca4..a39119f2 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,16 @@ - - - - - 위플플 | 여정 공유 서비스 - + + + + + + 위플플 | 여정 공유 플랫폼 + +
- + \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 091dfc27..11a4a49d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -53,6 +53,9 @@ dependencies: react-router-dom: specifier: ^6.21.1 version: 6.21.1(react-dom@18.2.0)(react@18.2.0) + react-scroll: + specifier: ^1.9.0 + version: 1.9.0(react-dom@18.2.0)(react@18.2.0) recoil: specifier: ^0.7.7 version: 0.7.7(react-dom@18.2.0)(react@18.2.0) @@ -76,6 +79,9 @@ devDependencies: '@types/react-modal': specifier: ^3.16.3 version: 3.16.3 + '@types/react-scroll': + specifier: ^1.8.10 + version: 1.8.10 '@types/uuid': specifier: ^9.0.7 version: 9.0.7 @@ -2547,6 +2553,12 @@ packages: '@types/react': 18.2.45 dev: true + /@types/react-scroll@1.8.10: + resolution: {integrity: sha512-RD4Z7grbdNGOKwKnUBKar6zNxqaW3n8m9QSrfvljW+gmkj1GArb8AFBomVr6xMOgHPD3v1uV3BrIf01py57daQ==} + dependencies: + '@types/react': 18.2.45 + dev: true + /@types/react@18.2.45: resolution: {integrity: sha512-TtAxCNrlrBp8GoeEp1npd5g+d/OejJHFxS3OWmrPBMFaVQMSN0OFySozJio5BHxTuTeug00AVXVAjfDSfk+lUg==} dependencies: @@ -3910,6 +3922,10 @@ packages: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} dev: true + /lodash.throttle@4.1.1: + resolution: {integrity: sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==} + dev: false + /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} dev: false @@ -4494,6 +4510,18 @@ packages: react: 18.2.0 dev: false + /react-scroll@1.9.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-mamNcaX9Ng+JeSbBu97nWwRhYvL2oba+xR2GxvyXsbDeGP+gkYIKZ+aDMMj/n20TbV9SCWm/H7nyuNTSiXA6yA==} + peerDependencies: + react: ^15.5.4 || ^16.0.0 || ^17.0.0 || ^18.0.0 + react-dom: ^15.5.4 || ^16.0.0 || ^17.0.0 || ^18.0.0 + dependencies: + lodash.throttle: 4.1.1 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + dev: false + /react@18.2.0: resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} engines: {node: '>=0.10.0'} diff --git a/src/components/DetailSectionTop/DetailSectionTop.tsx b/src/components/DetailSectionTop/DetailSectionTop.tsx index d4845979..dde82230 100644 --- a/src/components/DetailSectionTop/DetailSectionTop.tsx +++ b/src/components/DetailSectionTop/DetailSectionTop.tsx @@ -13,6 +13,7 @@ import { export default function DetailSectionTop() { const params = useParams(); + const tourItemId = Number(params.id); const detailQuery = useQuery({ diff --git a/src/router/routerLayout.tsx b/src/router/routerLayout.tsx index 5825698b..35f1703b 100644 --- a/src/router/routerLayout.tsx +++ b/src/router/routerLayout.tsx @@ -5,7 +5,7 @@ import { useLocation } from 'react-router-dom'; const MainLayout = () => { const location = useLocation(); - const hideNavPaths = ['/signup', '/signin']; + const hideNavPaths = ['/signup', '/signin', '/search']; const showNav = !hideNavPaths.some((path) => location.pathname.includes(path), );