Skip to content

Commit

Permalink
fix: modal 버전 업그레이드 및 필요없는 파일 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
turtle601 committed Jan 14, 2024
1 parent 7f1ab46 commit 78dcab4
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 101 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@tanstack/react-query-devtools": "^4.36.1",
"axios": "^1.5.1",
"browser-image-compression": "^2.0.2",
"celuveat-ui-library": "^1.4.8",
"celuveat-ui-library": "^1.4.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.2",
Expand Down
70 changes: 0 additions & 70 deletions frontend/src/components/@common/Dialog/Dialog.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/src/components/@common/Dialog/index.tsx

This file was deleted.

44 changes: 21 additions & 23 deletions frontend/src/components/Form/SuggestionForm/SuggestionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useParams } from 'react-router-dom';
import styled from 'styled-components';
import { postRevisedInfo } from '~/api/restaurant';
import TextButton from '~/components/@common/Button';
import Dialog from '~/components/@common/Dialog';

import { BORDER_RADIUS, FONT_SIZE } from '~/styles/common';

const labels = [
Expand Down Expand Up @@ -37,28 +37,26 @@ function SuggestionForm() {
};

return (
<Dialog title="정보 수정 제안">
<StyledForm onSubmit={handleSubmit}>
<h5>수정 항목</h5>
<p>잘못되었거나 수정이 필요한 정보들을 모두 선택해주세요.</p>
<StyledUnorderedList>
{labels.map(label => (
<StyledListItem>
<CheckBox value={label} onChange={clickCheckBox} />
<span>{label}</span>
</StyledListItem>
))}
<StyledTextarea placeholder="(선택) 내용을 입력해주세요." onChange={onChangeTextarea} />
</StyledUnorderedList>
<TextButton
type="submit"
text="등록하기"
onClick={handleSubmit}
colorType="light"
disabled={!checkedItems.length && !textareaValue}
/>
</StyledForm>
</Dialog>
<StyledForm onSubmit={handleSubmit}>
<h5>수정 항목</h5>
<p>잘못되었거나 수정이 필요한 정보들을 모두 선택해주세요.</p>
<StyledUnorderedList>
{labels.map(label => (
<StyledListItem>
<CheckBox value={label} onChange={clickCheckBox} />
<span>{label}</span>
</StyledListItem>
))}
<StyledTextarea placeholder="(선택) 내용을 입력해주세요." onChange={onChangeTextarea} />
</StyledUnorderedList>
<TextButton
type="submit"
text="등록하기"
onClick={handleSubmit}
colorType="light"
disabled={!checkedItems.length && !textareaValue}
/>
</StyledForm>
);
}

Expand Down
8 changes: 4 additions & 4 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4681,10 +4681,10 @@ caseless@~0.12.0:
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==

celuveat-ui-library@^1.4.8:
version "1.4.8"
resolved "https://registry.yarnpkg.com/celuveat-ui-library/-/celuveat-ui-library-1.4.8.tgz#b1222f75aed4334bb802a699f5ac12c28109ff8c"
integrity sha512-8ac5xnw+8qnzrctsRmfUP5arIhPZEB3JyN8YZEB37/vWyXso7l61usMc8hSNxIQIDHeZvkhslyVeob0AeKLklA==
celuveat-ui-library@^1.4.9:
version "1.4.9"
resolved "https://registry.yarnpkg.com/celuveat-ui-library/-/celuveat-ui-library-1.4.9.tgz#3a5ba0dc5e028505deab69f5af1b4dd18a735f21"
integrity sha512-yx2/QTlWdvZGzUD2gtBsI4GjHQCKjrEv0D1PhAkHNaAnbPByWzqapmxw3duVv03lrJcYcNHrVgEpejhI3+idbQ==
dependencies:
zustand "^4.4.7"

Expand Down

0 comments on commit 78dcab4

Please sign in to comment.