File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
src/components/ListenToPlayer/TopOfPagePlayer Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 1
1
import { PauseCircleIcon , PlayCircleIcon } from "@/components/icons/listen-to"
2
+ import { Button } from "@/components/ui/buttons/Button"
2
3
3
4
import { trackCustomEvent } from "@/lib/utils/matomo"
4
5
@@ -18,20 +19,21 @@ const TopOfPagePlayer = ({
18
19
handlePlayPause,
19
20
} : TopOfPagePlayerProps ) => {
20
21
return (
21
- < div className = "inline-block w-full rounded-lg bg-background-low p-2 hover:bg-background-medium lg:w-auto" >
22
- < div
23
- className = "flex cursor-pointer flex-row items-center gap-2 text-primary hover:text-primary-hover"
24
- onClick = { ( ) => {
25
- if ( startedPlaying ) {
26
- trackCustomEvent ( {
27
- eventCategory : "Audio" ,
28
- eventAction : "click" ,
29
- eventName : "start" ,
30
- } )
31
- }
32
- handlePlayPause ( )
33
- } }
34
- >
22
+ < Button
23
+ variant = "ghost"
24
+ className = "inline-block w-full rounded-lg bg-background-low p-2 hover:bg-background-medium lg:w-auto"
25
+ onClick = { ( ) => {
26
+ if ( startedPlaying ) {
27
+ trackCustomEvent ( {
28
+ eventCategory : "Audio" ,
29
+ eventAction : "click" ,
30
+ eventName : "start" ,
31
+ } )
32
+ }
33
+ handlePlayPause ( )
34
+ } }
35
+ >
36
+ < div className = "flex flex-row items-center gap-2 text-primary hover:text-primary-hover" >
35
37
{ startedPlaying ? (
36
38
isPlaying ? (
37
39
< PauseCircleIcon className = "h-6 w-6 transition-transform" />
@@ -52,7 +54,7 @@ const TopOfPagePlayer = ({
52
54
) }
53
55
</ div >
54
56
</ div >
55
- </ div >
57
+ </ Button >
56
58
)
57
59
}
58
60
You can’t perform that action at this time.
0 commit comments