Skip to content

Commit

Permalink
Merge pull request #15 from codestates-seb/dev
Browse files Browse the repository at this point in the history
Upstream Pull
  • Loading branch information
KYUNGMINMON authored Jun 23, 2023
2 parents d561f8b + 970a790 commit 8a2829b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
19 changes: 19 additions & 0 deletions client/src/components/MarkDownEditor.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { forwardRef } from 'react';
import '@toast-ui/editor/dist/toastui-editor.css'; // Editor 스타일
import { Editor } from '@toast-ui/react-editor';
import styled from 'styled-components';

const EditorWrapper = styled.div`
margin-bottom: 1rem;
`;

const MarkDownEditor = (props, ref) => (
<EditorWrapper>
<Editor
ref={ref}
initialValue={props.content || ' '} // 글 수정 시 사용
/>
</EditorWrapper>
);

export default forwardRef(MarkDownEditor);
6 changes: 3 additions & 3 deletions client/src/components/pagenation/Pagenation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ function Pagination({ total, limit, setPage, page, setLimit }) {
<PageBtn onClick={() => handleLimitChange(5)} active={limit === 5}>
5
</PageBtn>
<PageBtn onClick={() => handleLimitChange(30)} active={limit === 15}>
15
</PageBtn>
<PageBtn onClick={() => handleLimitChange(30)} active={limit === 30}>
30
</PageBtn>
<PageBtn onClick={() => handleLimitChange(30)} active={limit === 50}>
50
</PageBtn>
</RightButtons>
</Nav>
</>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Questions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ const UserId = styled.div`
color: rgb(0, 116, 204);
cursor: pointer;
line-height: 0.75rem;
margin: -0.125rem;
margin: 0.125rem;
}
`;
const UserTime = styled.time`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@Transactional
@Service
public class QuestionService {
private final int SIZE = 10;
private final int SIZE = 15;
private final QuestionRepository questionRepository;
private final UserService userService;

Expand Down

0 comments on commit 8a2829b

Please sign in to comment.