-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 미체결 거래가 체결 거래로 전환될 시 서버에서 전송하는 데이터 수신하여 알림 메시지 띄우는 기능 구현 Issues #122
- Loading branch information
1 parent
0c9f76d
commit 3919405
Showing
5 changed files
with
129 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
client/src/components/StockOrderSection/WaitOrderIndicator.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { useEffect } from "react"; | ||
import { toast } from "react-toastify"; | ||
|
||
import useGetWaitOrderSuccessInfo from "../../hooks/useGetWaitOrderSuccessInfo"; | ||
|
||
const WaitOrderIndicator = () => { | ||
const { waitOrderSuccessData } = useGetWaitOrderSuccessInfo(); | ||
|
||
const toastStyle = { | ||
fontSize: "15px", | ||
fontWeight: 450, | ||
color: "#2679ed", | ||
}; | ||
|
||
useEffect(() => { | ||
if (waitOrderSuccessData) { | ||
toast.info(`대기주문이 체결되었습니다`, { | ||
style: toastStyle, | ||
position: "bottom-left", | ||
}); | ||
} | ||
}, [waitOrderSuccessData]); | ||
|
||
return <div></div>; | ||
}; | ||
|
||
export default WaitOrderIndicator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters