diff --git a/web/avatars/emoji-avatar-selection-modal.css b/web/avatars/emoji-avatar-selection-modal.css --- a/web/avatars/emoji-avatar-selection-modal.css +++ b/web/avatars/emoji-avatar-selection-modal.css @@ -1,7 +1,10 @@ -div.modalBody { +div.modalContainer { display: flex; flex-direction: column; overflow: hidden; +} + +div.modalBody { padding: 20px; } 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 @@ -21,11 +21,14 @@ import Avatar from './avatar.react.js'; import css from './emoji-avatar-selection-modal.css'; import Button, { buttonThemes } from '../components/button.react.js'; +import Tabs from '../components/tabs.react.js'; import LoadingIndicator from '../loading-indicator.react.js'; import Modal from '../modals/modal.react.js'; import ColorSelector from '../modals/threads/color-selector.react.js'; import { useSelector } from '../redux/redux-utils.js'; +type TabType = 'emoji' | 'color'; + function EmojiAvatarSelectionModal(): React.Node { const { popModal } = useModalContext(); @@ -110,9 +113,11 @@ saveButtonContent = 'Save Avatar'; } + const [currentTabType, setCurrentTabType] = React.useState('emoji'); + return ( -
+
-
- -
-
- -
-
- + + +
+
+ +