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

나만의 칵테일과 관련된 프론트를 구현한다. (미완성) #264

Merged
merged 16 commits into from
Feb 20, 2021

Conversation

toneyparky
Copy link
Collaborator

#263

아직 완전하게 구현된 상황은 아니지만 협업을 위해 우선 pr을 보냅니다.

@toneyparky toneyparky added 🏭 개발 개발과 관련된 이슈 ❇️ 프론트 프론트엔드와 관련된 이슈 labels Feb 19, 2021
@toneyparky toneyparky requested a review from KimGyeong February 19, 2021 04:53
@toneyparky toneyparky self-assigned this Feb 19, 2021
@toneyparky toneyparky changed the title 나만의 칵테일과 관련된 프론트를 구현한다. 나만의 칵테일과 관련된 프론트를 구현한다. (미완성) Feb 19, 2021
Copy link
Collaborator

@KimGyeong KimGyeong left a comment

Choose a reason for hiding this comment

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

한번 확인해줘용


const onSelect = (e) => {
const selectedId = e.target.dataset.id;
const found = glasses.find((it) => it.id == selectedId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const found = glasses.find((it) => it.id == selectedId);
const found = glasses.find(it => it.id === selectedId);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

저게 ===로 하니까 동작을 안하더라구...
it.id는 number인데 selectedId는 dataset에서 나올 때에 문자열로 나와서!

그래서 parseInt를 해줬슴니다

    const found = glasses.find(it => it.id === parseInt(selectedId));

<div>
{/*Slider로 수정*/}
{glasses &&
glasses.map((it) => (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
glasses.map((it) => (
glasses.map(it => (

Copy link
Collaborator Author

@toneyparky toneyparky Feb 20, 2021

Choose a reason for hiding this comment

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

이 괄호 유무는 무슨 차이일까용?

뭔가 하나 있을 때는 괄호가 없다!?

내 포매터는 계속 넣어주걸랑..


const onSelect = (e) => {
const selectedId = e.target.dataset.id;
const found = ingredients().find((it) => it.id == selectedId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const found = ingredients().find((it) => it.id == selectedId);
const found = ingredients().find(it => it.id === selectedId);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

수정 완료

<Step>
{({ accomplished, index }) => (
<div
className={`indexed-step ${accomplished ? "accomplished" : null}`}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
className={`indexed-step ${accomplished ? "accomplished" : null}`}
className={`indexed-step ${accomplished ? "accomplished" : ""}`}

이건 확신은 없네요

Copy link
Collaborator

Choose a reason for hiding this comment

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

아래 아이들도 같이 변경되면 좋겠어요.

아니면 forEach를 돌려서 중복을 줄이는 것도 방법이겠네요

Copy link
Collaborator

@KimGyeong KimGyeong left a comment

Choose a reason for hiding this comment

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

고생하셨습니당

머지를 하게 되면 리베이스를 해야 하니까 피곤할테니 클로즈도 나쁘지 않은 선택일 것 같은데요?

@KimGyeong KimGyeong merged commit 4f8492d into dev Feb 20, 2021
@toneyparky toneyparky deleted the feat/263 branch February 22, 2021 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏭 개발 개발과 관련된 이슈 ❇️ 프론트 프론트엔드와 관련된 이슈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants