Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3532743
D8267.id28073.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8267.id28073.diff
View Options
diff --git a/web/avatars/emoji-avatar-selection-modal.react.js b/web/avatars/emoji-avatar-selection-modal.react.js
--- a/web/avatars/emoji-avatar-selection-modal.react.js
+++ b/web/avatars/emoji-avatar-selection-modal.react.js
@@ -16,6 +16,7 @@
import Avatar from './avatar.react.js';
import css from './emoji-avatar-selection-modal.css';
import Modal from '../modals/modal.react.js';
+import ColorSelector from '../modals/threads/color-selector.react.js';
import { useSelector } from '../redux/redux-utils.js';
function EmojiAvatarSelectionModal(): React.Node {
@@ -34,7 +35,6 @@
: defaultUserAvatar.emoji,
);
- // eslint-disable-next-line no-unused-vars
const [pendingAvatarColor, setPendingAvatarColor] = React.useState(
currentUserAvatar.type === 'emoji'
? currentUserAvatar.color
@@ -56,6 +56,10 @@
<div className={css.avatarContainer}>
<Avatar avatarInfo={pendingEmojiAvatar} size="profile" />
</div>
+ <ColorSelector
+ currentColor={pendingAvatarColor}
+ onColorSelection={setPendingAvatarColor}
+ />
</div>
</Modal>
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 9:48 AM (9 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2705234
Default Alt Text
D8267.id28073.diff (1 KB)
Attached To
Mode
D8267: [web] Add `ColorSelector` to `EmojiAvatarSelectionModal`
Attached
Detach File
Event Timeline
Log In to Comment