Skip to content

Commit

Permalink
chore: 웹소켓 stompjs 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
play3step committed Jul 10, 2024
1 parent e217479 commit 54e7d02
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@emotion/styled": "^11.11.5",
"@mui/material": "^5.16.0",
"@mui/x-date-pickers": "^7.9.0",
"@stomp/stompjs": "^7.0.0",
"axios": "^1.7.2",
"dayjs": "^1.11.11",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function App() {
element={<PersonalPage />}
/>
<Route
path="/group"
path="/group/:code"
element={<GroupPage />}
/>
</Routes>
Expand Down
5 changes: 5 additions & 0 deletions src/components/ListPage/MainContent/ItemContainer.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import { useNavigate } from 'react-router-dom'
import Item from './atom/Item'

const ItemContainer = ({ onClick, groupData }) => {
const nav = useNavigate()
return (
<div className="w-full min-h-[222px] max-h-[354px] py-5 px-4 grid grid-cols-4 gap-4 border border-black overflow-y-scroll">
<Item onClick={onClick} />
{groupData?.map((data, index) => (
<Item
key={index}
data={data}
onClick={() => {
nav(`/group/${data.code}`)
}}
/>
))}
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/pages/GroupPage.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { useParams } from 'react-router-dom'

const GroupPage = () => {
const { code } = useParams()
console.log(code)
return <p>GroupPage</p>
}

export default GroupPage

0 comments on commit 54e7d02

Please sign in to comment.