Skip to content

Commit

Permalink
Merge pull request #14 from Moaguide-develop/feat/find
Browse files Browse the repository at this point in the history
fix: useSearchParams CSR 오류
  • Loading branch information
jiohjung98 authored Sep 3, 2024
2 parents 47c56d5 + 179f142 commit 54edf92
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/find/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
'use client';

import Navbar from '@/components/common/Navbar';
import FindTabs from '@/components/find/FindTabs';
import React from 'react';
import { Suspense } from "react";

const FindPage = () => {
return (
<div>
<Suspense>
<Navbar />
</Suspense>
<FindTabs />
</div>
);
Expand Down
3 changes: 3 additions & 0 deletions src/app/sign/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
import Navbar from '@/components/common/Navbar';
import SignLayout from '@/components/sign/SignLayout';
import React from 'react';
import { Suspense } from "react";

const SignPage = () => {
return (
<div>
<Suspense>
<Navbar />
</Suspense>
<SignLayout/>
</div>
);
Expand Down
3 changes: 3 additions & 0 deletions src/app/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Step2 from '@/components/signup/Step2';
import Step3 from '@/components/signup/Step3';
import Step4 from '@/components/signup/Step4';
import Navbar from '@/components/common/Navbar';
import { Suspense } from "react";

const SignupPage: React.FC = () => {
const [currentStep, setCurrentStep] = useState(1);
Expand Down Expand Up @@ -78,7 +79,9 @@ const SignupPage: React.FC = () => {

return (
<div>
<Suspense>
<Navbar/>
</Suspense>
<div className="signup-container">
{currentStep === 1 && (
<Step1 onNext={handleNext} onUpdate={(data) => handleUpdate(data)} />
Expand Down
2 changes: 2 additions & 0 deletions src/components/common/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use client';

import React from 'react';
import { useRouter, useSearchParams, usePathname } from 'next/navigation';
import { Suspense } from 'react';

const Navbar = () => {
const params = useSearchParams();
Expand Down

0 comments on commit 54edf92

Please sign in to comment.