-
Notifications
You must be signed in to change notification settings - Fork 1
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: 로그인 상태 관리 및 우측 사이드바 제작 #24
Conversation
로그아웃 버튼 위치도 추후에 디자이너 분께서 헤더 만들면 그 쪽으로 바꾸겟습니다 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테이블 만드는거 되게 어려워보이는데 금방 잘하시네용👍🏻🥳
}; | ||
|
||
// 초기 자산 값 (1억) | ||
const INITIAL_ASSET = 100_000_000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 이름 1억으로 바꾸고
const eok = Math.floor(amount / 100000000);
const man = Math.floor((amount % 100000000) / 10000);
여기서도 쓰는건 어때용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵!
isNegative ? "text-[#1A00DF]" : "text-[#F12E35]" | ||
}`} | ||
className={clsx("flex items-center", { | ||
"text-[#1A00DF]": isNegative, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 왜 삼항연산자 안쓰구 이렇게 바꾼건지 궁금해용!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clsx 쓸수 있어서 바꿨습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 zustand는 따로 store 폴더에 저장하는게 덜 헷갈릴 것 같아용!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스토어 라기보단 쿠키관련한걸 클라이언트에서 사용하게 할수있는 훅이라 빼놨는데 다음 PR에 옮겨볼게요
#️⃣ 이슈
📝 작업 내용
우측 사이드바제작 및 로그인 상태관리 입니다
📸 스크린샷
default.webm
✅ 체크 리스트
👩💻 공유 포인트 및 논의 사항
전역상태 스토어에 저장된 정보로 로그인 상태를 확인하니까 새로고침하면 잠깐 로그인 안되어있을때 컴포넌트가 보이네요
이건 로딩이나 혹은 추후에 캐싱을 이용해서 수정해보겠습니다