Skip to content

Commit

Permalink
feat: 메인페이지에 배너추가
Browse files Browse the repository at this point in the history
- BannerImageLIst 객체를 배너에 전달
  • Loading branch information
seongwon030 committed Feb 2, 2025
1 parent 5072677 commit 73a7c87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/pages/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useState } from 'react';
import CategoryButtonList from '@/pages/MainPage/components/CategoryButtonList/CategoryButtonList';
import Banner from '@/pages/MainPage/components/Banner/Banner';
import { BannerImageList } from '@/utils/banners';

const MainPage = () => {
const [selectedCategory, setSelectedCategory] = useState<string>('all');
Expand All @@ -10,6 +12,7 @@ const MainPage = () => {

return (
<>
<Banner banners={BannerImageList} />
<CategoryButtonList onCategorySelect={handleCategorySelect} />
</>
);
Expand Down

0 comments on commit 73a7c87

Please sign in to comment.