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

Feat/signup #4

Merged
merged 23 commits into from
Oct 26, 2024
Merged

Feat/signup #4

merged 23 commits into from
Oct 26, 2024

Conversation

Jetom88
Copy link
Collaborator

@Jetom88 Jetom88 commented Oct 21, 2024

πŸ”Ž κ΄€λ ¨ 이슈

νšŒμ›κ°€μž… / 둜그인 κ΄€λ ¨ νŽ˜μ΄μ§€μž…λ‹ˆλ‹€.

πŸ›  μž‘μ—… λ‚΄μš©

  • μ˜ˆμƒ λ™μž‘: νšŒμ›κ°€μž…μ„ ν•œ λ’€ λ‘œκ·ΈμΈμ„ ν•˜λ©΄ 둜컬 μŠ€ν† λ¦¬μ§€μ— μžˆλŠ” λ‚΄μš©μ„ 확인 ν›„ λ‘œκ·ΈμΈμ„ ν•˜κ²Œλ©λ‹ˆλ‹€. λ§Œμ•½ 정보가 μ—†λ‹€λ©΄ "아이디, λΉ„λ°€λ²ˆν˜Έλ₯Ό ν™•μΈν•΄μ£Όμ„Έμš”." λΌλŠ” νŒμ—…μ΄ λœ¨κ²Œλ©λ‹ˆλ‹€.
  • μ‹€μ œ λ™μž‘: μœ„μ˜ μ˜ˆμƒ λ™μž‘κ³Ό μΌμΉ˜ν•©λ‹ˆλ‹€.
  • μž¬ν˜„ 방법: 메인 νŽ˜μ΄μ§€μ— μœ„μΉ˜ν•œ νšŒμ›κ°€μž…μ„ 클릭 ν•©λ‹ˆλ‹€. νšŒμ›κ°€μž… μ™„λ£Œ ν›„ νŒμ—… 창을 λˆ„λ₯΄λ©΄ 메인 νŽ˜μ΄μ§€λ‘œ λŒμ•„κ°‘λ‹ˆλ‹€. μ΄λ•Œ νšŒμ›κ°€μž… μ‹œ μž…λ ₯ν–ˆλ˜ 아이디 및 λΉ„λ°€λ²ˆν˜Έλ₯Ό μž…λ ₯ν•©λ‹ˆλ‹€.

πŸ“Œ PR Point

πŸ“Έ μŠ€ν¬λ¦°μƒ· λ˜λŠ” GIF(option)

@f-lab-kevin
Copy link

SonarCloudμ—μ„œ μ½”λ“œ λΆ„μ„ν•œ 결과에 λŒ€ν•΄μ„œλ„ 읽고 μˆ˜μ •ν•΄μ£Όμ‹œλ©΄ 더 쒋을것 κ°™μ•„μš”
ν˜Ήμ‹œ λΆ„μ„κ²°κ³Όμ˜ λ‚΄μš©μ΄ μ œλŒ€λ‘œ μ΄ν•΄κ°€μ‹œμ§€ μ•ŠμœΌλ©΄ μŠ¬λž™μœΌλ‘œ μ§ˆλ¬Έμ£Όμ…”λ„ 쒋을것 κ°™κ΅¬μš”!

Copy link

@f-lab-kevin f-lab-kevin left a comment

Choose a reason for hiding this comment

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

리뷰 λ‚΄μš©λ„ 계속 λ°˜μ˜ν•΄μ£Όμ‹œκ³ 
commit의 경우 review λ‚΄μš©μ„ λ°˜μ˜ν•˜λŠ” 변경사항이라면 commit message에 review: λΌλŠ” μ‹œμž‘ 문ꡬλ₯Ό λΆ™μ—¬μ£Όμ‹œλ©΄ 쒋을것 κ°™μŠ΅λ‹ˆλ‹€~!

import { useState } from "react";
import Popup from "@/app/components/common/Popup";

const page = () => {

Choose a reason for hiding this comment

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

νŽ˜μ΄μ§€ μ»΄ν¬λ„ŒνŠΈλŠ” κΈ°λŠ₯κ³Ό λ ˆμ΄μ•„μ›ƒ μ»΄ν¬λ„ŒνŠΈλ“€μ˜ μ‘°ν•©μœΌλ‘œ κ΅¬μ„±λ˜κ²Œλ” μ½”λ“œλ₯Ό λΆ„ν• ν•΄λ³΄μ‹œλ©΄ μ–΄λ–¨κΉŒμš”?

const router = useRouter();
const [goal, setGoal] = useState<string>("");
const onClick = () => {
localStorage.removeItem("login");

Choose a reason for hiding this comment

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

λ‘œμ»¬μŠ€ν† λ¦¬μ§€λŠ” key:value κ΄€κ³„λ‘œ κΌ­ ν•„μš”ν•œ key만 μ‚¬μš©λ˜κ²Œλ” νƒ€μž…μœΌλ‘œ μ—„κ²©ν•˜κ²Œ μ œν•œν•  μˆ˜λ„ μžˆμ„κ²ƒ κ°™μŠ΅λ‹ˆλ‹€~! μ•ˆμ „ν•˜κ²Œ μ‚¬μš©ν•˜λ €λ©΄ νƒ€μž…μŠ€ν¬λ¦½νŠΈλ₯Ό μ–΄λ–»κ²Œ ν™œμš©ν•˜λŠ”κ²ƒμ΄ μ’‹μ„κΉŒμš”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

말씀주신 λ‚΄μš©μœΌλ‘œ 리뷰 λ°˜μ˜ν–ˆμŠ΅λ‹ˆλ‹€ !! :)

@Jetom88
Copy link
Collaborator Author

Jetom88 commented Oct 22, 2024

SonarCloudμ—μ„œ μ½”λ“œ λΆ„μ„ν•œ 결과에 λŒ€ν•΄μ„œλ„ 읽고 μˆ˜μ •ν•΄μ£Όμ‹œλ©΄ 더 쒋을것 κ°™μ•„μš” ν˜Ήμ‹œ λΆ„μ„κ²°κ³Όμ˜ λ‚΄μš©μ΄ μ œλŒ€λ‘œ μ΄ν•΄κ°€μ‹œμ§€ μ•ŠμœΌλ©΄ μŠ¬λž™μœΌλ‘œ μ§ˆλ¬Έμ£Όμ…”λ„ 쒋을것 κ°™κ΅¬μš”!

sonarCloudμ—μ„œ λ‚˜νƒ€λ‚œ 결과에 λŒ€ν•΄μ„œ μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€! κ°„κ³Όν–ˆλ˜ λΆ€λΆ„, λͺ°λžλ˜ 뢀뢄을 콕 μ°μ–΄μ€˜μ„œ νŽΈν•œ λ„κ΅¬λ„€μš” γ…Žγ…Ž

Copy link

@f-lab-kevin f-lab-kevin left a comment

Choose a reason for hiding this comment

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

κ³ μƒν•˜μ…¨μŠ΅λ‹ˆλ‹€~!
λ¦¬λ·°λ‚΄μš© 반영과 ν•¨κ»˜ mergeν•΄μ£Όμ„Έμš”!

import { create } from "zustand";

type LoginStore = {
loginPopup: boolean;

Choose a reason for hiding this comment

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

boolean νƒ€μž…μ˜ λ³€μˆ˜μ΄λ¦„μ€ is~와 같이 μ½”λ”©μ»¨λ²€μ…˜μ„ μ°Έκ³ ν•΄μ„œ λ‹€λ₯΄κ²Œ ν‘œν˜„ν•˜μ‹œλ©΄ μ’‹μ„κ±°κ°™μ•„μš”

airbnbλ‚˜ googleκ³Ό 같은 곳의 javascript convention λ¬Έμ„œλ₯Ό μ½μ–΄λ³΄μ‹œμ£ 

set(() => ({ loginPopup: state }));
},
loginMessage: null,
setLoginMessage: (state) => {

Choose a reason for hiding this comment

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

immer 라이브러리λ₯Ό 같이 ν™œμš©ν•΄μ£Όμ‹œλ©΄ μ–΄λ–¨κΉŒμš”?
μ™œ μ‚¬μš©ν•΄μ•Όν•˜λŠ”μ§€λ„ λ΄μ£Όμ‹œλ©΄ 쒋을것 κ°™λ„€μš”!

<LoginForm />
</article>

{/* <LoginBox

Choose a reason for hiding this comment

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

λ‹Ήμž₯ κ°œλ°œν• κ²Œ μ•„λ‹ˆλΌλ©΄ μ§€μš°λŠ”κ²Œ λ‚«μŠ΅λ‹ˆλ‹€ γ…Žγ…Ž

if (data) {
const getAuthInfo = localStorageGetItem("signin");

if (getAuthInfo) {

Choose a reason for hiding this comment

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

λΆ„κΈ°λ¬Έ 쀑첩은 μ§€μ–‘ν•˜μ‹œμ£ !

보호ꡬ문 μ΄λΌλŠ” λ¦¬νŒ©ν† λ§μ„ μ μš©ν•΄λ³΄μ‹œμ£ 

@@ -2,7 +2,7 @@ import { popupContents, popupWrapper } from "@/app/styles/common/popup.css";
import { paragraph2, semiBold } from "@/app/styles/font.css";
import { flexSprinklesFc } from "./utils/flex";

const Popup = ({ text, children }: { text: string; children: React.ReactNode }) => {
const Popup = ({ text, children }: { text: null | string; children: React.ReactNode }) => {

Choose a reason for hiding this comment

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

zodλ₯Ό μ‚¬μš©ν•˜λ©΄ nullish νƒ€μž…μœΌλ‘œ ν‘œν˜„ν• μˆ˜λ„ μžˆμ„κ²ƒ κ°™μ•„μš”

νƒ€μž…μ—λŠ” nullish(optional), nullable같은 ν˜•νƒœμ˜ νƒ€μž…λ„ μžˆμœΌλ‹ˆ ν™œμš©ν•΄λ³΄μ‹œλŠ”κ±΄ μ–΄λ–¨κΉŒμš”

Copy link

sonarcloud bot commented Oct 26, 2024

@Jetom88
Copy link
Collaborator Author

Jetom88 commented Oct 26, 2024

λ©˜ν† λ‹˜κ»˜μ„œ 말씀주신 review듀을 λ°”νƒ•μœΌλ‘œ λ¦¬νŒ©ν† λ§ 및 라이브러리λ₯Ό μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€ κ°μ‚¬ν•©λ‹ˆλ‹€ ~~ :D

@Jetom88 Jetom88 merged commit b355d15 into develop Oct 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants