-
Notifications
You must be signed in to change notification settings - Fork 7
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: Implements change color, line-width, pen-mode function #39
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.
κ³ μνμ ¨μ΅λλ€. μ μ μν κ΄λ ¨ν΄μλ μλ κΈ μ½μ΄λ³΄μ¬ μ’μ κ² κ°μμ.
https://velog.io/@woohm402/no-global-state-manager
https://methodpoet.com/why-is-global-state-bad/
https://dev.to/jess/what-are-your-opinions-on-local-state-vs-global-state-in-react-201
const DrawingComponent = () => { | ||
return ( |
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.
μ»΄ν¬λνΈ μ΄λ¦μ component
λ μ΄λ―Έ νμΌμ΄λ λλ ν 리 컨ν
μ€νΈμμ μμμ μΌλ‘ λ΄ν¬λμ΄μλ μ 보μ΄λ―λ‘ λΆνμνκ² μ€λ³΅λλ κ² κ°μ΅λλ€!
// eslint-disable-next-line jsx-a11y/click-events-have-key-events | ||
<div key={i} className={`bg-canvas-${i} h-16 w-16`} onClick={() => handleChangeToolColor(i)}> | ||
{color} | ||
</div> |
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.
μΉ μ κ·Όμ± κ΄λ ¨ ESLint μ€λ₯ λλ¬Έμ μ£Όμμ²λ¦¬ ν΄λμ κ² κ°μλ° div
보λ€λ button
μ¬μ©νμκ³ μ£Όμ μ 리ν΄μ£Όμλ©΄ μ’μ κ² κ°μ΅λλ€.
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 { useCanvasStore } from '@/stores/useCanvasStore'; | ||
import { CanvasStore } from '@/types/canvas.types'; | ||
|
||
const CANVAS_SIZE_WIDTH = 640; //μμ μ¬μ΄μ¦ | ||
const CANVAS_SIZE_HEIGHT = 420; | ||
|
||
const CV = ['#000', '#f257c9', '#e2f724', '#4eb4c2', '#d9d9d9']; | ||
//μμ μμ λ°°μ΄ | ||
|
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.
μμ λ°°μ΄μ΄ μλ κ°μ²΄λ‘ ν΄μ, key-valueλ‘ κ΄λ¦¬νλ κ² μ’μ κ±° κ°λ€μ.
μ μ½λλ₯Ό λ°λΌ 보면 κ·Έλ κ² μμ±νμ΄μμ. μ κ·Όμ±λ μΈ μ μκ³ , ν·κ°λ¦¬μ§λ μμμ λ°μν΄μ£Όμλ©΄ κ°μ¬νκ² μ΅λλ€!
β¦div for clickable element
π Storybook preview deployed to: Visit Storybook Preview |
π§Ή Storybook preview for PR #39 has been removed. |
π μμ λ΄μ©
closes #37
closes #21
closes #22
closes #23
μμ λ΄μ©
CheckPoint
π‘ μμΈν μ€λͺ
Note
μ€λͺ
π μ°Έκ³ μλ£ & ꡬν κ²°κ³Ό (μ ν)
π’ 리뷰 μꡬ μ¬ν (μ ν)
π© νμ μμ (μ ν)
β μ ν 체ν¬λ¦¬μ€νΈ
main
μ΄ μλλλ€.)리뷰 μ½λ©νΈ λ°μ