Skip to content

Commit

Permalink
[Refactor] 불필요한 파일/주석 제거 및 디렉토리명 통일
Browse files Browse the repository at this point in the history
- 불필요한 파일, 주석 등 제거
- 컴포넌트 내부 디렉토리명 통일 (앞글자 대문자로 통일)

Issues #122
  • Loading branch information
novice1993 committed Sep 25, 2023
1 parent 6398bce commit f1eed0a
Show file tree
Hide file tree
Showing 24 changed files with 84 additions and 588 deletions.
1 change: 0 additions & 1 deletion client/src/components/CentralChart/CompareChartBtn.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useState } from "react";
import { styled } from "styled-components";
import useCompanyData from "../../hooks/useCompanyData";

import CompareList from "./CompareList";
import IconImg from "../../asset/CentralSectionMenu-compareChart.png";

Expand Down
38 changes: 0 additions & 38 deletions client/src/components/CentralChartMenu/BookmarkBtn.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions client/src/components/CentralChartMenu/CompareChartBtn.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions client/src/components/CentralChartMenu/ExpandScreenBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ export default ExpandScreenBtn;
// type 정의
interface OwnProps {
direction: string;
buttonHover?: boolean; //build error 해결을 위해 ?를 붙였습니다
buttonHover?: boolean;
}

// component 생성
const Button = styled.div<OwnProps>`
width: ${(props) => (props.buttonHover ? "46px" : "6px")};
/* width: 46px; */
height: 100%;
display: flex;
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/CentralChartMenu/StockOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const StockOverview = () => {

const corpName = stockInfo.korName;

const companyLogo = corpName && dummyLogo[companyId];
const companyLogo = corpName && dummyLogo[companyId - 1];

const stockCode = stockInfo.code;
const stockPrice = parseInt(stockInfo.stockInfResponseDto.stck_prpr, 10).toLocaleString();
Expand Down
32 changes: 0 additions & 32 deletions client/src/components/CompareChartSection/CompareList.tsx

This file was deleted.

62 changes: 0 additions & 62 deletions client/src/components/CompareChartSection/Index.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions client/src/components/CompareChartSection/SearchBox.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions client/src/components/Headers/LoginHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { useEffect, useState } from "react";
import styled from "styled-components";
import StockHolmLogo from "../../asset/images/StockHolmLogo.png";
// import SampleProfile from "../../asset/images/ProfileSample.png";
import ProfileModal from "../Profile/profileModal";
import StockSearchComponent from "./stockSearchComponent";
import ProfileModal from "../Profile/ProfileModal";
import StockSearchComponent from "./StockSearchComponent";
import { setLogoutState } from "../../reducer/member/loginSlice";
import { useDispatch } from "react-redux";
import { useGetMemberInfo } from "../../hooks/useGetMemberInfo"; // import the hook
Expand Down
6 changes: 2 additions & 4 deletions client/src/components/Headers/LogoutHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ import React from "react";
import styled from "styled-components";
import StockHolmLogo from "../../asset/images/StockHolmLogo.png";

import StockSearchComponent from "./stockSearchComponent";
import StockSearchComponent from "./StockSearchComponent";

const LogoutHeader: React.FC<LogoutHeaderProps> = ({ onLoginClick }) => {


const loginText = "로그인"; // 로그인 버튼 텍스트

// 로고 클릭 핸들러
const handleLogoClick = () => {
window.location.reload()
window.location.reload();
};

// 컴포넌트 렌더링
Expand Down
100 changes: 0 additions & 100 deletions client/src/components/LeftStockListSection/Header.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions client/src/components/LeftStockListSection/Index.tsx

This file was deleted.

Loading

0 comments on commit f1eed0a

Please sign in to comment.