Skip to content

Commit

Permalink
✨feat: Main.jsx - Main 컴포넌트에 SearchContent 컴포넌트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinHeeEul committed Jun 24, 2024
1 parent e5c98eb commit 653aaa3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/pages/main/Main.jsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import { useState } from "react";
import Header from "../../components/common/header/Header";
import Sidebar from "../../components/common/sidebar/Sidebar";
import { StyledMainDiv, MainBody, MainContent } from "./Main.style";
import RelatedStock from "./RelatedStock";
import RelatedStockContent from "./RelatedStockContent";
import { useSelector } from "react-redux";
import SearchContent from "./SearchContent";
import { useState } from "react";
import ScrollToTopButton from "../../components/common/scroll-top-button/Scroll.top.button";

export default function MainPage() {
const keyword= useSelector((state) => state.keyword.keyword);
const keyword = useSelector((state) => state.keyword.keyword);

return (
<StyledMainDiv>
<Sidebar />
<MainContent>
<MainBody>
<Header />
<RelatedStock keyword={keyword}></RelatedStock>
<RelatedStockContent keyword={keyword}></RelatedStockContent>
<SearchContent keyword={keyword}></SearchContent>
</MainBody>
</MainContent>
</StyledMainDiv>
Expand Down

0 comments on commit 653aaa3

Please sign in to comment.