@@ -9,16 +9,6 @@ import React, {
9
9
Key ,
10
10
} from 'react'
11
11
import { Icon } from '@iconify/react'
12
- import playCircle from '@iconify/icons-mdi/play-circle'
13
- import pauseCircle from '@iconify/icons-mdi/pause-circle'
14
- import skipPrevious from '@iconify/icons-mdi/skip-previous'
15
- import skipNext from '@iconify/icons-mdi/skip-next'
16
- import fastForward from '@iconify/icons-mdi/fast-forward'
17
- import rewind from '@iconify/icons-mdi/rewind'
18
- import volumeHigh from '@iconify/icons-mdi/volume-high'
19
- import volumeMute from '@iconify/icons-mdi/volume-mute'
20
- import repeat from '@iconify/icons-mdi/repeat'
21
- import repeatOff from '@iconify/icons-mdi/repeat-off'
22
12
import ProgressBar from './ProgressBar'
23
13
import CurrentTime from './CurrentTime'
24
14
import Duration from './Duration'
@@ -449,9 +439,9 @@ class H5AudioPlayer extends Component<PlayerProps> {
449
439
const isPlaying = this . isPlaying ( )
450
440
let actionIcon : ReactNode
451
441
if ( isPlaying ) {
452
- actionIcon = customIcons . pause ? customIcons . pause : < Icon icon = { pauseCircle } />
442
+ actionIcon = customIcons . pause ? customIcons . pause : < Icon icon = "mdi:pause-circle" />
453
443
} else {
454
- actionIcon = customIcons . play ? customIcons . play : < Icon icon = { playCircle } />
444
+ actionIcon = customIcons . play ? customIcons . play : < Icon icon = "mdi:play-circle" />
455
445
}
456
446
return (
457
447
< div key = { key } className = "rhap_main-controls" >
@@ -462,7 +452,7 @@ class H5AudioPlayer extends Component<PlayerProps> {
462
452
type = "button"
463
453
onClick = { onClickPrevious }
464
454
>
465
- { customIcons . previous ? customIcons . previous : < Icon icon = { skipPrevious } /> }
455
+ { customIcons . previous ? customIcons . previous : < Icon icon = "mdi:skip-previous" /> }
466
456
</ button >
467
457
) }
468
458
{ showJumpControls && (
@@ -472,7 +462,7 @@ class H5AudioPlayer extends Component<PlayerProps> {
472
462
type = "button"
473
463
onClick = { this . handleClickRewind }
474
464
>
475
- { customIcons . rewind ? customIcons . rewind : < Icon icon = { rewind } /> }
465
+ { customIcons . rewind ? customIcons . rewind : < Icon icon = "mdi: rewind" /> }
476
466
</ button >
477
467
) }
478
468
< button
@@ -490,7 +480,7 @@ class H5AudioPlayer extends Component<PlayerProps> {
490
480
type = "button"
491
481
onClick = { this . handleClickForward }
492
482
>
493
- { customIcons . forward ? customIcons . forward : < Icon icon = { fastForward } /> }
483
+ { customIcons . forward ? customIcons . forward : < Icon icon = "mdi:fast-forward" /> }
494
484
</ button >
495
485
) }
496
486
{ showSkipControls && (
@@ -500,7 +490,7 @@ class H5AudioPlayer extends Component<PlayerProps> {
500
490
type = "button"
501
491
onClick = { onClickNext }
502
492
>
503
- { customIcons . next ? customIcons . next : < Icon icon = { skipNext } /> }
493
+ { customIcons . next ? customIcons . next : < Icon icon = "mdi:skip-next" /> }
504
494
</ button >
505
495
) }
506
496
</ div >
@@ -517,9 +507,9 @@ class H5AudioPlayer extends Component<PlayerProps> {
517
507
518
508
let loopIcon : ReactNode
519
509
if ( loop ) {
520
- loopIcon = customIcons . loop ? customIcons . loop : < Icon icon = { repeat } />
510
+ loopIcon = customIcons . loop ? customIcons . loop : < Icon icon = "mdi: repeat" />
521
511
} else {
522
- loopIcon = customIcons . loopOff ? customIcons . loopOff : < Icon icon = { repeatOff } />
512
+ loopIcon = customIcons . loopOff ? customIcons . loopOff : < Icon icon = "mdi:repeat-off" />
523
513
}
524
514
return (
525
515
< button
@@ -538,9 +528,9 @@ class H5AudioPlayer extends Component<PlayerProps> {
538
528
539
529
let volumeIcon : ReactNode
540
530
if ( volume ) {
541
- volumeIcon = customIcons . volume ? customIcons . volume : < Icon icon = { volumeHigh } />
531
+ volumeIcon = customIcons . volume ? customIcons . volume : < Icon icon = "mdi:volume-high" />
542
532
} else {
543
- volumeIcon = customIcons . volume ? customIcons . volumeMute : < Icon icon = { volumeMute } />
533
+ volumeIcon = customIcons . volume ? customIcons . volumeMute : < Icon icon = "mdi:volume-mute" />
544
534
}
545
535
return (
546
536
< div key = { key } className = "rhap_volume-container" >
0 commit comments