Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3532896
D8267.id27914.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.id27914.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
@@ -53,13 +53,17 @@
return (
<Modal
name="Emoji avatar selection"
- size="large"
+ size="small"
onClose={modalContext.popModal}
>
<div className={css.modalBody}>
<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, 10:11 AM (10 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704591
Default Alt Text
D8267.id27914.diff (1 KB)
Attached To
Mode
D8267: [web] Add `ColorSelector` to `EmojiAvatarSelectionModal`
Attached
Detach File
Event Timeline
Log In to Comment