Skip to content
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

[Release/0.2.0] Dev에 재반영 #19

Merged
merged 3 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/pages/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ export default function Board() {
console.log('Get List');
console.log(response);
if (response.status === 200) {
// 로컬은 어떻게?

// [postList, imageList]를 담은 리스트 생성
const post = response.data.postList.content;
const image = response.data.imageList;
Expand Down Expand Up @@ -131,7 +129,6 @@ export default function Board() {
) : postList.length > 0 ? (
<div style={{ flex: '1' }}>
{postList.map((post, index) => {
// index를 수정?
// const imageUrl = 'http://localhost:80/image/' + post.image.uuid;
const imageUrl = '/image/' + post.image.uuid; // 운영 환경의 url
return (
Expand Down Expand Up @@ -186,7 +183,6 @@ export default function Board() {

<div style={{ width: '100%', textAlign: 'center', padding: '10px 0 20px 0' }}>
<PageNumber page={page} setPageNumber={setPageNumber} />
{/* <TextField variant='standard' size='small'>검색</TextField> */}
</div>

{/* Bottom Navbar */}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export default function Post() {
{!isContentValid && content.length > 0 && <div className="errorMessageWrap">최대 500자 입력 가능합니다.</div>}
</div>

{/* 지역: 도로명주소? API? */}
{/* 도로명주소 API */}
<div>
<Button onClick={openPostCode} style={{ marginTop: '20px' }}>
우편번호 검색
Expand All @@ -237,7 +237,6 @@ export default function Post() {
<PopupPostCode onClose={closePostCode} setLocation={setLocation} location={location} onChange={handleInput} />
</PopupDom>
)}
{/* {location} */}
</div>
</div>

Expand Down
1 change: 0 additions & 1 deletion src/utils/Validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export const isPrice = (price) => {
};

export const isContent = (content) => {
// const contentRegex = new RegExp('^.{1,500}$');
const contentRegex = new RegExp('^(.|\\n){1,500}$');
return contentRegex.test(content);
};
Expand Down