-
Notifications
You must be signed in to change notification settings - Fork 3
Make study group list Page #3
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5f0d922
Fixed test fail
saseungmin d393c43
[Feature] Apply to StudyListPage
saseungmin 921afea
[Feature] Add Header components
saseungmin a02b478
[Fix] webpack settings and change location index.html
saseungmin 1009319
[Feature] StudyIntroducePage and Apply to App components
saseungmin 2762c99
[Fix] Change Components naming
saseungmin 0907169
[Feature] Renders Study List
saseungmin fa11fdd
[Fix] render Study Groups
saseungmin ca3423f
[Feature] Add Study group tags components
saseungmin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,3 @@ | ||
export const useDispatch = jest.fn(); | ||
|
||
export const useSelector = jest.fn(); |
This file contains hidden or 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,22 @@ | ||
/* eslint-disable no-plusplus */ | ||
|
||
module.exports = () => { | ||
const data = { groups: [] }; | ||
|
||
for (let i = 0; i < 30; i++) { | ||
const randomMonth = Math.floor((Math.random() * (11 - 1)) + 1); | ||
const randomDay = Math.floor((Math.random() * (30 - 1)) + 1); | ||
|
||
data.groups.push({ | ||
id: i, | ||
moderatorId: `user${i}`, | ||
title: `스터디를 소개합니다. ${i}`, | ||
applyStartDate: `2020-${randomMonth}-${randomDay}`, | ||
applyEndDate: '2020-12-3', | ||
personnel: randomMonth, | ||
contents: `우리는 이것저것 합니다.${i}`, | ||
tags: ['JavaScript', 'React', 'Algorithm'], | ||
}); | ||
} | ||
return data; | ||
}; | ||
This file contains hidden or 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,155 @@ | ||
{ | ||
"groups": [ | ||
{ | ||
"id": 1, | ||
"moderatorId": "user1", | ||
"title": "스터디를 소개합니다. 1", | ||
"applyStartDate": "2020-7-10", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 7, | ||
"contents": "우리는 이것저것 합니다.1", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 2, | ||
"moderatorId": "user2", | ||
"title": "스터디를 소개합니다. 2", | ||
"applyStartDate": "2020-10-18", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 10, | ||
"contents": "우리는 이것저것 합니다.2", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 3, | ||
"moderatorId": "user3", | ||
"title": "스터디를 소개합니다. 3", | ||
"applyStartDate": "2020-2-18", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 2, | ||
"contents": "우리는 이것저것 합니다.3", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 4, | ||
"moderatorId": "user4", | ||
"title": "스터디를 소개합니다. 4", | ||
"applyStartDate": "2020-8-14", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 8, | ||
"contents": "우리는 이것저것 합니다.4", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 5, | ||
"moderatorId": "user5", | ||
"title": "스터디를 소개합니다. 5", | ||
"applyStartDate": "2020-4-2", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 4, | ||
"contents": "우리는 이것저것 합니다.5", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 6, | ||
"moderatorId": "user6", | ||
"title": "스터디를 소개합니다. 6", | ||
"applyStartDate": "2020-9-25", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 9, | ||
"contents": "우리는 이것저것 합니다.6", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 7, | ||
"moderatorId": "user7", | ||
"title": "스터디를 소개합니다. 7", | ||
"applyStartDate": "2020-8-20", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 8, | ||
"contents": "우리는 이것저것 합니다.7", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 8, | ||
"moderatorId": "user8", | ||
"title": "스터디를 소개합니다. 8", | ||
"applyStartDate": "2020-8-25", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 8, | ||
"contents": "우리는 이것저것 합니다.8", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 9, | ||
"moderatorId": "user9", | ||
"title": "스터디를 소개합니다. 9", | ||
"applyStartDate": "2020-2-11", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 2, | ||
"contents": "우리는 이것저것 합니다.9", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
}, | ||
{ | ||
"id": 10, | ||
"moderatorId": "user10", | ||
"title": "스터디를 소개합니다. 10", | ||
"applyStartDate": "2020-3-2", | ||
"applyEndDate": "2020-12-3", | ||
"personnel": 3, | ||
"contents": "우리는 이것저것 합니다.10", | ||
"tags": [ | ||
"JavaScript", | ||
"React", | ||
"Algorithm" | ||
] | ||
} | ||
], | ||
"users": [ | ||
{ | ||
"id": 1, | ||
"password": "1234", | ||
"userId": "seung", | ||
"groupId": 1 | ||
} | ||
], | ||
"profile": { | ||
"name": "typicode" | ||
} | ||
} |
This file contains hidden or 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,28 @@ | ||
const studyGroups = [ | ||
{ | ||
id: 1, | ||
moderatorId: 'user1', | ||
title: '스터디를 소개합니다. 1', | ||
personnel: 7, | ||
contents: '우리는 이것저것 합니다.1', | ||
tags: [ | ||
'JavaScript', | ||
'React', | ||
'Algorithm', | ||
], | ||
}, | ||
{ | ||
id: 2, | ||
moderatorId: 'user2', | ||
title: '스터디를 소개합니다. 2', | ||
personnel: 10, | ||
contents: '우리는 이것저것 합니다.2', | ||
tags: [ | ||
'JavaScript', | ||
'React', | ||
'Algorithm', | ||
], | ||
}, | ||
]; | ||
|
||
export default studyGroups; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
map
이라는 더 명시적인 함수를 이용해서 표현해주면 좋을 것 같아요\