Skip to content

Commit 0b84382

Browse files
committed
(refacto) move audio components inside Message
1 parent a7a5b07 commit 0b84382

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/audio/AudioPlayer.vue renamed to src/ChatWindow/Message/AudioPlayer.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<svg-icon :name="isPlaying ? 'audio-pause' : 'audio-play'" />
66
</div>
77

8-
<line-control
8+
<audio-control
99
ref-id="progress"
1010
:percentage="progress"
1111
@change-linehead="onUpdateProgress"
@@ -21,14 +21,14 @@
2121
</template>
2222

2323
<script>
24-
import SvgIcon from '../SvgIcon'
25-
import LineControl from './LineControl'
24+
import SvgIcon from '../../components/SvgIcon'
25+
import AudioControl from './AudioControl'
2626
2727
export default {
2828
name: 'AudioPlayer',
2929
components: {
3030
SvgIcon,
31-
LineControl
31+
AudioControl
3232
},
3333
3434
props: {

src/ChatWindow/Message/Message.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@
169169
<script>
170170
import SvgIcon from '../../components/SvgIcon'
171171
import FormatMessage from '../../components/FormatMessage'
172-
import AudioPlayer from '../../components/audio/AudioPlayer'
173172
174173
import MessageReply from './MessageReply'
175174
import MessageImage from './MessageImage'
176175
import MessageActions from './MessageActions'
177176
import MessageReactions from './MessageReactions'
177+
import AudioPlayer from './AudioPlayer'
178178
179179
const { isImageFile } = require('../../utils/media-file')
180180

0 commit comments

Comments
 (0)