Skip to content

Commit

Permalink
fix: 서스펜스 바운더리 수정해 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
gihwan-dev committed Oct 7, 2024
1 parent cd7272a commit 0126d39
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
18 changes: 16 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,22 @@ function App() {
</Suspense>
}
/>
<Route path={'/terms/service'} element={<서비스이용약관페이지 />} />
<Route path="/terms/privacy" element={<개인정보처리방침페이지 />} />
<Route
path={'/terms/service'}
element={
<Suspense fallback={<LoadingSpinner />}>
<서비스이용약관페이지 />
</Suspense>
}
/>
<Route
path="/terms/privacy"
element={
<Suspense fallback={<LoadingSpinner />}>
<개인정보처리방침페이지 />
</Suspense>
}
/>
<Route path="/*" element={<ErrorPage />} />
</Routes>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion src/components/main/MyPlantAlimCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const MyPlantAlimCheck: React.FC<MyPlantAlimCheckProps> = ({ plants }) => {
</div>
<CarouselContent>
{plants.map((plant) => (
<MyPlantCarouselItem plant={plant} />
<MyPlantCarouselItem key={`${plant.myPlantId}-CarouselItem`} plant={plant} />
))}
</CarouselContent>
</Carousel>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/개인정보처리방침페이지.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 왼쪽꺽쇠 from '@/assets/icon/left-arrow.svg?react';
import Header from '@/components/common/Header';
import useInternalRouter from '@/hooks/useInternalRouter.ts';
import HeightBox from '@/components/common/HeightBox';
import { withDefaultAsyncBoundary } from '@/utils/asyncBoundary/withDefaultAsyncBoundary.tsx';

const 개인정보처리방침페이지 = () => {
const { goBack } = useInternalRouter();
Expand Down Expand Up @@ -33,4 +32,4 @@ const 개인정보처리방침페이지 = () => {
);
};

export default withDefaultAsyncBoundary(개인정보처리방침페이지);
export default 개인정보처리방침페이지;
3 changes: 1 addition & 2 deletions src/pages/서비스이용약관페이지.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Header from '@/components/common/Header';
import 왼쪽꺽쇠 from '@/assets/icon/left-arrow.svg?react';
import useInternalRouter from '@/hooks/useInternalRouter.ts';
import HeightBox from '@/components/common/HeightBox';
import { withDefaultAsyncBoundary } from '@/utils/asyncBoundary/withDefaultAsyncBoundary.tsx';

const 서비스이용약관페이지 = () => {
const { goBack } = useInternalRouter();
Expand Down Expand Up @@ -33,4 +32,4 @@ const 서비스이용약관페이지 = () => {
);
};

export default withDefaultAsyncBoundary(서비스이용약관페이지);
export default 서비스이용약관페이지;

0 comments on commit 0126d39

Please sign in to comment.