Skip to content

Feature/sshin#4

Open
proshin wants to merge 3 commits intodevelopfrom
feature/sshin
Open

Feature/sshin#4
proshin wants to merge 3 commits intodevelopfrom
feature/sshin

Conversation

@proshin
Copy link
Collaborator

@proshin proshin commented Mar 11, 2022

맛집등록 UI 개발~~

@proshin proshin changed the base branch from master to develop March 11, 2022 09:35
@proshin proshin added the feature 새로운 기능 label Mar 11, 2022
Comment on lines +40 to +44
let checkedList: string[] = [];

selected.forEach((selectedItem) => {
checkedList.push(SHARE_LIST[Number(selectedItem)].name)
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let checkedList: string[] = [];
selected.forEach((selectedItem) => {
checkedList.push(SHARE_LIST[Number(selectedItem)].name)
})
const checkedList: string[] = selected.map((selectedItem) => {
return SHARE_LIST[Number(selectedItem)].name
})

}}
>
{SHARE_LIST.map((item) => (
<MenuItem value={item.id}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요기두 key 추가 부탁드립니다.

음식 종류
</Grid>
<Grid item xs={9}>
{FOOD_TYPES[foodTypeId].name}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{FOOD_TYPES[foodTypeId].name}
{FOOD_TYPES[foodTypeId]?.name}

해당 값이 없을 때 오류가 발생할 수 있을 거 같아 예외 처리 해야할 것 같습니다.

<Grid item xs={9}>
{price} 원
</Grid>
{memo !== "" && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{memo !== "" && (
{memo && (

요렇게 해도 좋을거 같아요!

<Grid item xs={9}>
<List>
{shareList.map((shareItem: string) => (
<ListItem>{SHARE_LIST[Number(shareItem)].name} </ListItem>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔑

Comment on lines +86 to +87
{tagList &&
tagList.map((tag: Tag, idx: number) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{tagList &&
tagList.map((tag: Tag, idx: number) => (
{tagList?.map((tag: Tag, idx: number) => (

import SelectShare from "./SelectShare";
import Confirm from "./Confirm";

const theme = createTheme({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

theme (ThemeProvider)를 최상단에서 관리하면 컴포넌트 별로 정의하지 않아도 되서 좋을 것 같아요!

Copy link
Contributor

@beckyi beckyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

처음 개발하는거 같지 않습니다~

Copy link
Collaborator

@deveeni deveeni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

재밌는 코드네요!

{tagList.length > 0 &&
tagList.map((tag: Tag) =>
<Chip
label={tag.name}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key 추가 해주세요~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature 새로운 기능

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants