Skip to content

Commit 4be790e

Browse files
committed
(refactor) rename emoji picker component
1 parent 024024c commit 4be790e

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

src/components/EmojiPicker/EmojiPicker.vue renamed to src/components/EmojiPickerContainer/EmojiPickerContainer.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@
3131

3232
<script>
3333
import SvgIcon from '../SvgIcon/SvgIcon'
34+
import { EmojiPicker } from 'emoji-picker-element'
3435
3536
export default {
37+
name: 'EmojiPickerContainer',
3638
components: {
39+
EmojiPicker,
3740
SvgIcon
3841
},
3942

src/lib/Message/MessageActions/MessageActions.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</slot>
3232
</div>
3333

34-
<emoji-picker
34+
<emoji-picker-container
3535
v-if="isMessageReactions"
3636
key="3"
3737
v-click-outside="closeEmoji"
@@ -47,7 +47,7 @@
4747
<template #emoji-picker-icon>
4848
<slot name="emoji-picker-reaction-icon" />
4949
</template>
50-
</emoji-picker>
50+
</emoji-picker-container>
5151
</transition-group>
5252
</div>
5353

@@ -85,13 +85,13 @@
8585
import vClickOutside from 'v-click-outside'
8686
8787
import SvgIcon from '../../../components/SvgIcon/SvgIcon'
88-
import EmojiPicker from '../../../components/EmojiPicker/EmojiPicker'
88+
import EmojiPickerContainer from '../../../components/EmojiPickerContainer/EmojiPickerContainer'
8989
9090
const { isImageFile } = require('../../../utils/media-file')
9191
9292
export default {
9393
name: 'MessageActions',
94-
components: { SvgIcon, EmojiPicker },
94+
components: { SvgIcon, EmojiPickerContainer },
9595
9696
directives: {
9797
clickOutside: vClickOutside.directive

src/lib/Room/Room.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
</slot>
271271
</div>
272272

273-
<emoji-picker
273+
<emoji-picker-container
274274
v-if="showEmojis && (!file || imageFile || videoFile)"
275275
v-click-outside="() => (emojiOpened = false)"
276276
:emoji-opened="emojiOpened"
@@ -281,7 +281,7 @@
281281
<template v-for="(i, name) in $scopedSlots" #[name]="data">
282282
<slot :name="name" v-bind="data" />
283283
</template>
284-
</emoji-picker>
284+
</emoji-picker-container>
285285

286286
<div
287287
v-if="showFiles"
@@ -335,7 +335,7 @@ import { Database } from 'emoji-picker-element'
335335
336336
import Loader from '../../components/Loader/Loader'
337337
import SvgIcon from '../../components/SvgIcon/SvgIcon'
338-
import EmojiPicker from '../../components/EmojiPicker/EmojiPicker'
338+
import EmojiPickerContainer from '../../components/EmojiPickerContainer/EmojiPickerContainer'
339339
340340
import RoomHeader from './RoomHeader/RoomHeader'
341341
import RoomMessageReply from './RoomMessageReply/RoomMessageReply'
@@ -365,7 +365,7 @@ export default {
365365
InfiniteLoading,
366366
Loader,
367367
SvgIcon,
368-
EmojiPicker,
368+
EmojiPickerContainer,
369369
RoomHeader,
370370
RoomMessageReply,
371371
RoomUsersTag,

src/styles/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@import '../lib/Message/MessageReactions/MessageReactions';
2323
@import '../lib/Message/MessageReply/MessageReply';
2424

25-
@import '../components/EmojiPicker/EmojiPicker';
25+
@import '../components/EmojiPickerContainer/EmojiPickerContainer';
2626
@import '../components/FormatMessage/FormatMessage';
2727
@import '../components/Loader/Loader';
2828
@import '../components/SvgIcon/SvgIcon';

0 commit comments

Comments
 (0)