Skip to content

Commit eeeb299

Browse files
authored
Merge pull request #1434 from woowacourse/refactor/#1429-article-front-merge-feature-branch
명세와 맞지않는 type 긴급 변경
2 parents f3ea20a + 6545260 commit eeeb299

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

backend/src/main/java/wooteco/prolog/roadmap/domain/Keyword.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package wooteco.prolog.roadmap.domain;
22

3+
34
import static wooteco.prolog.common.exception.BadRequestCode.ROADMAP_KEYWORD_AND_KEYWORD_PARENT_SAME_EXCEPTION;
45
import static wooteco.prolog.common.exception.BadRequestCode.ROADMAP_KEYWORD_SEQUENCE_EXCEPTION;
56

@@ -35,6 +36,12 @@
3536
import java.util.Objects;
3637
import java.util.Set;
3738

39+
import javax.persistence.*;
40+
import java.util.HashSet;
41+
import java.util.List;
42+
import java.util.Objects;
43+
import java.util.Set;
44+
3845
@Getter
3946
@NoArgsConstructor(access = AccessLevel.PROTECTED)
4047
@Entity

backend/src/main/java/wooteco/prolog/studylog/application/PopularStudylogService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ private List<Studylog> findRecentStudylogs(final LocalDateTime dateTime,
9292
private List<Studylog> filterStudylogsByMemberGroups(final List<Studylog> studylogs,
9393
final MemberGroups memberGroups,
9494
final List<GroupMember> groupMembers) {
95+
9596
return studylogs.stream()
9697
.filter(
9798
studylog -> checkMemberAssignedInMemberGroups(memberGroups, studylog.getMember(),

frontend/src/models/Article.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
export interface ArticleRequest {
33
title: string;
4-
link: string;
4+
url: string;
55
}
66

77
export interface ArticleType {

frontend/src/pages/NewArticlePage/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { PATH } from '../../constants';
1717
const NewArticlePage = () => {
1818
const [articleContent, setArticleContent] = useState<ArticleRequest>({
1919
title: '',
20-
link: '',
20+
url: '',
2121
});
2222

2323
const history = useHistory();
@@ -28,8 +28,8 @@ const NewArticlePage = () => {
2828
setArticleContent({ ...articleContent, title: e.target.value });
2929
};
3030

31-
const onArticleLinkChanged = (e: React.ChangeEvent<HTMLInputElement>) => {
32-
setArticleContent({ ...articleContent, link: e.target.value });
31+
const onArticleUrlChanged = (e: React.ChangeEvent<HTMLInputElement>) => {
32+
setArticleContent({ ...articleContent, url: e.target.value });
3333
};
3434

3535
const createArticle = () => {
@@ -51,9 +51,9 @@ const NewArticlePage = () => {
5151
<InputContainer>
5252
<Label>링크</Label>
5353
<Input
54-
value={articleContent.link}
54+
value={articleContent.url}
5555
placeholder="링크를 입력해주세요."
56-
onChange={onArticleLinkChanged}
56+
onChange={onArticleUrlChanged}
5757
/>
5858
</InputContainer>
5959
<Button type="button" size="X_SMALL" css={[SubmitButtonStyle]} onClick={createArticle}>

0 commit comments

Comments
 (0)