-
Notifications
You must be signed in to change notification settings - Fork 0
[feat] Portfolio Page 구현 #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| //TODO 왜 styled로 감싼 컴포넌트에 component props가 안되는지 | ||
| // component="div" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다음 이슈에서 Pagination 관련으로 styled 문제도 함께 찾아보기
| //TODO : toast 추가 | ||
| // const message = (error as AxiosError<Response<null>>).response?.data | ||
| // ?.message as string; | ||
| // toast.error(message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추후 이슈에서 Toast 추가해서 해결하기
| // type Props = { | ||
| // tab: PortfolioPageTab; | ||
| // onChangeTab: (tab: PortfolioPageTab) => void; | ||
| // }; | ||
|
|
||
| // export default function ChartsPanel({ tab, onChangeTab }: Props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
모바일 화면 추가할 때 추가하기
| // const { | ||
| // data: portfolioSSE, | ||
| // //TODO: SSE 에러일때 핸들링처리 | ||
| // } = useSSE<PortfolioSSE>({ | ||
| // url: `/api/portfolio/${portfolioId}/holdings/realtime`, | ||
| // eventTypeName: "portfolioDetails", | ||
| // }); | ||
|
|
||
| // // Static Data | ||
| // const { portfolioDetails, portfolioHoldings } = portfolio; | ||
| // // Realtime Data | ||
| // const { | ||
| // portfolioDetails: portfolioDetailsSSE, | ||
| // portfolioHoldings: portfolioHoldingsSSE, | ||
| // } = portfolioSSE ?? { portfolioDetails: null, portfolioHoldings: [] }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SSE 추가할 때 적용하기
구현한 것
기타 변경 사항
Maximum update depth exceeded에러 발생