HomePhabricator
Diffusion Comm 769453ce44f6

[web] Introduce `pendingColorSelection` state to `ColorSelector` component

Description

[web] Introduce pendingColorSelection state to ColorSelector component

Summary:
Introduce pendingColorSelection state to the ColorSelector component that keeps track of the user's color selection.

pendingColorSelection is passed to the ColorSelectorButton component to style the button based on whether it is the actively selected color or not.

setPendingColorSelection is also passed down to the ColorSelectorButton so any "new" color selections will update the pendingColorSelection state in ColorSelector.

Test Plan:
Works as expected:

Reviewers: palys-swm, def-au1t

Reviewed By: palys-swm

Subscribers: ashoat, palys-swm, Adrian, karol-bisztyga, benschac, yayabosh

Differential Revision: https://phabricator.ashoat.com/D3684

Details