Skip to content

Commit

Permalink
Merge pull request #1434 from woowacourse/refactor/#1429-article-fron…
Browse files Browse the repository at this point in the history
…t-merge-feature-branch

명세와 맞지않는 type 긴급 변경
  • Loading branch information
Creative-Lee authored Jul 20, 2023
2 parents f3ea20a + 6545260 commit eeeb299
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package wooteco.prolog.roadmap.domain;


import static wooteco.prolog.common.exception.BadRequestCode.ROADMAP_KEYWORD_AND_KEYWORD_PARENT_SAME_EXCEPTION;
import static wooteco.prolog.common.exception.BadRequestCode.ROADMAP_KEYWORD_SEQUENCE_EXCEPTION;

Expand Down Expand Up @@ -35,6 +36,12 @@
import java.util.Objects;
import java.util.Set;

import javax.persistence.*;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;

@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ private List<Studylog> findRecentStudylogs(final LocalDateTime dateTime,
private List<Studylog> filterStudylogsByMemberGroups(final List<Studylog> studylogs,
final MemberGroups memberGroups,
final List<GroupMember> groupMembers) {

return studylogs.stream()
.filter(
studylog -> checkMemberAssignedInMemberGroups(memberGroups, studylog.getMember(),
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/models/Article.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

export interface ArticleRequest {
title: string;
link: string;
url: string;
}

export interface ArticleType {
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/pages/NewArticlePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { PATH } from '../../constants';
const NewArticlePage = () => {
const [articleContent, setArticleContent] = useState<ArticleRequest>({
title: '',
link: '',
url: '',
});

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

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

const createArticle = () => {
Expand All @@ -51,9 +51,9 @@ const NewArticlePage = () => {
<InputContainer>
<Label>링크</Label>
<Input
value={articleContent.link}
value={articleContent.url}
placeholder="링크를 입력해주세요."
onChange={onArticleLinkChanged}
onChange={onArticleUrlChanged}
/>
</InputContainer>
<Button type="button" size="X_SMALL" css={[SubmitButtonStyle]} onClick={createArticle}>
Expand Down

0 comments on commit eeeb299

Please sign in to comment.