diff --git a/FE/index.html b/FE/index.html index 48dcbde9..81421944 100644 --- a/FE/index.html +++ b/FE/index.html @@ -2,7 +2,7 @@
- + = 6" } }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "engines": { + "node": ">=6" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -3486,6 +3495,18 @@ "react-dom": ">=16.8" } }, + "node_modules/react-toastify": { + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/react-toastify/-/react-toastify-10.0.6.tgz", + "integrity": "sha512-yYjp+omCDf9lhZcrZHKbSq7YMuK0zcYkDFTzfRFgTXkTFHZ1ToxwAonzA4JI5CxA91JpjFLmwEsZEgfYfOqI1A==", + "dependencies": { + "clsx": "^2.1.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", diff --git a/FE/package.json b/FE/package.json index 4d667eee..dd0e90c4 100644 --- a/FE/package.json +++ b/FE/package.json @@ -17,6 +17,7 @@ "react-dom": "^18.3.1", "react-error-boundary": "^4.1.2", "react-router-dom": "^6.27.0", + "react-toastify": "^10.0.6", "socket.io-client": "^4.8.1", "vite-tsconfig-paths": "^5.0.1", "zustand": "^5.0.1" diff --git a/FE/src/App.tsx b/FE/src/App.tsx index 7b88da0b..9939f1f4 100644 --- a/FE/src/App.tsx +++ b/FE/src/App.tsx @@ -12,6 +12,8 @@ import Login from 'components/Login'; import SearchModal from './components/Search'; import MyPage from 'page/MyPage'; import Rank from 'page/Rank.tsx'; +import { ToastContainer } from 'react-toastify'; +import 'react-toastify/dist/ReactToastify.css'; function App() { return ( @@ -39,6 +41,7 @@ function Layout() {종목
+현재가
+등락률
+{name}
+{code}
++ {(+stck_prpr).toLocaleString()}원 +
+3 ? 'text-juga-blue-50' : 'text-juga-red-60'}`} + > + {+prdy_vrss_sign < 3 && '+'} + {prdy_ctrt}% +
+- username +
+ 닉네임
- {name} -
- + {isEditMode ? ( + <> + setNickname(e.target.value)} + className='w-24 min-w-[60px] flex-1 text-right font-semibold text-juga-grayscale-500 sm:w-auto sm:min-w-[80px]' + autoFocus + /> + + + > + ) : ( + <> ++ {nickname} +
++ 두 글자 이상의 검색어를 입력해주세요. +
{e.label}
{e.value}
- {changeValue > 0 - ? `${Number(changePrice).toLocaleString()}(${changeValue}%)` - : `${Number(changePrice).toLocaleString()}(${Math.abs(changeValue)}%)`} + {plusOrMinus} + {Math.abs(Number(changePrice))}({percentAbsolute} + %)