diff --git a/src/Component/Button/DeleteButton2.tsx b/src/Component/Button/DeleteButton2.tsx index d8f6590..82123aa 100644 --- a/src/Component/Button/DeleteButton2.tsx +++ b/src/Component/Button/DeleteButton2.tsx @@ -2,24 +2,25 @@ import React from "react"; import "./DeleteButtonStyle.css"; interface AnimatedButtonProps { - onClick: () => void; + onClick: () => void; } const DeleteButton2: React.FC = ({ onClick }) => { - return ( -
-
-
-
- ); + return ( +
+
+
+
+ ); }; export default DeleteButton2; diff --git a/src/Component/Chart/chart.tsx b/src/Component/Chart/chart.tsx index 7575c18..038962a 100644 --- a/src/Component/Chart/chart.tsx +++ b/src/Component/Chart/chart.tsx @@ -99,8 +99,8 @@ const Chart = ({ data }: CandleData) => { newsHtml += `
  • - ${newItem.title} -
  • `; + + ${newItem.title}`; }); } diff --git a/src/Component/Chart/chartStyle.ts b/src/Component/Chart/chartStyle.ts index 654f152..79f4979 100644 --- a/src/Component/Chart/chartStyle.ts +++ b/src/Component/Chart/chartStyle.ts @@ -1,10 +1,10 @@ import styled from "styled-components"; export const ChartStyle = styled.div` - width: 90%; + width: 100%; margin-bottom: 30px; `; export const ChartDate = styled.p` font-family: "SCDream9"; -`; \ No newline at end of file +`; diff --git a/src/Component/Modal/addStock.tsx b/src/Component/Modal/addStock.tsx index 71efda2..5b57c43 100644 --- a/src/Component/Modal/addStock.tsx +++ b/src/Component/Modal/addStock.tsx @@ -34,8 +34,7 @@ const AddOrEditModal: React.FC = ({ const location = useLocation(); const id = location.pathname.split("/")[2]; - const changeStatus = usePortfolioStore((state) => state.change); - const changeCheck = usePortfolioStore((state) => state.setChange); + const { change, setChange } = usePortfolioStore(); const handleChangeQuantity = (e: React.ChangeEvent) => { const value = parseFloat(e.target.value); @@ -77,7 +76,7 @@ const AddOrEditModal: React.FC = ({ }); onConfirm(quantity, price); onClose(); - changeCheck(!changeStatus); + setChange(!change); } }) .catch((error) => { diff --git a/src/Component/Portfolio/PortfolioDetail.tsx b/src/Component/Portfolio/PortfolioDetail.tsx index a847771..6dfae5f 100644 --- a/src/Component/Portfolio/PortfolioDetail.tsx +++ b/src/Component/Portfolio/PortfolioDetail.tsx @@ -20,7 +20,6 @@ const TitleDiv = styled.div` justify-content: space-between; @media (max-width: 768px) { width: 100%; - padding-right: 2rem; } `;