Page MenuHomePhabricator

D8267.id28073.diff
No OneTemporary

D8267.id28073.diff

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

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)

Event Timeline