-
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/asidbar Sidbar Component style #13
Conversation
Pointer 컴포넌트의 좌표 버그가 발견되었습니다. ㅠ 수정중입니다 |
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.
머지 전에 src/components/Sidebar/Sidebar.tsx 파일의 매직넘버만 수정하시면 좋을 것 같습니다!!
@@ -11,7 +11,7 @@ function getAbsolutePath(value: string): any { | |||
} | |||
const config: StorybookConfig = { | |||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"], | |||
staticDirs: ["../public"], | |||
staticDirs: ["../src/assets"], |
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.
이 부분은 public 에서 가져 올 staticAssets 경로를 설정해야하니 public이 맞지 않나요?
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.
저도 해당 부분 public이라고 생각이 드는데, 다음과 같이 바꾼 이유가 있나요?
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.
저희가 public 폴더가 없어서 에러가 발생하는 군요..
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.
public 폴더는 존재하지 않나요??
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.
#12 (comment)
음 제 경우에는 public경로가 없어서 에러가 발생합니다
src/components/Sidebar/Sidebar.tsx
Outdated
const height = groups.length * 80 + 80; | ||
const pointerY = selectedIdx * 64 + 24 - 4; |
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.
넵 그렇게 수정해보도록 하겠습니다 👍
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.
전반적으로 코드 잘 보았습니다
이해가 전반적으로 잘 되어서 Approve 드립니다
import { MouseEventHandler } from "react"; | ||
import { motion } from "framer-motion"; | ||
import clsx from "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.
clsx
라는 것 하나 배워갑니다 링크
개요
작업 분류
작업 상세 내용
1. sidebar의 스타일 및 애니메이션을 추가했습니다.
어떤 그룹을 선택했는지 알기 쉽도록 Pointer컴포넌트를 추가하였으며, 선택한 그룹으로 이동하도록 구현하였습니다.
2. framer-motion 패키지를 추가하였습니다.
애니메이션을 구현하기 위헤 framer-motion패키지를 추가하였으며, Pointer컴포넌트 및 Group컴포넌트에서 사용하였습니다.