Skip to content

feat(drawing): Support drawing colors#653

Merged
mergify[bot] merged 2 commits intobox:masterfrom
mingzexiao6:drawing-color
Dec 17, 2020
Merged

feat(drawing): Support drawing colors#653
mergify[bot] merged 2 commits intobox:masterfrom
mingzexiao6:drawing-color

Conversation

@mingzexiao6
Copy link
Contributor

@mingzexiao6 mingzexiao6 commented Dec 14, 2020

  • Unit tests

Preview PR: box/box-content-preview#1309

@mingzexiao6 mingzexiao6 marked this pull request as ready for review December 15, 2020 01:24
@mingzexiao6 mingzexiao6 requested a review from a team as a code owner December 15, 2020 01:24
<DrawingCreator className="ba-DrawingAnnotations-creator" onStart={handleStart} onStop={handleStop} />
<DrawingCreator
className="ba-DrawingAnnotations-creator"
color={color}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could also use the useSelector hook inside DrawingCreator to avoid having to pass this down.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stroke has two properties, color and size. Using useSelector for color and default value for size seems not consistent. Maybe we can refactor it if we add size to the store in the future.

ConradJChan
ConradJChan previously approved these changes Dec 17, 2020
@mergify mergify bot merged commit f445cef into box:master Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants