mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
fix: apply fix from eslint
This commit is contained in:
@ -183,7 +183,7 @@ export default createPlugin({
|
||||
setVideoState(target.checked);
|
||||
}}
|
||||
songButtonText={t('plugins.video-toggle.templates.button-song')}
|
||||
videoButtonText={t('plugins.video-toggle.templates.button-video',)}
|
||||
videoButtonText={t('plugins.video-toggle.templates.button-video')}
|
||||
/>
|
||||
</Show>
|
||||
),
|
||||
|
||||
@ -9,8 +9,8 @@ export const VideoSwitchButton = (props: VideoSwitchButtonProps) => (
|
||||
<div
|
||||
class="video-switch-button"
|
||||
data-video-button-text={props.videoButtonText}
|
||||
on:click={props.onClick}
|
||||
onChange={props.onChange}
|
||||
on:click={(e) => props.onClick?.(e)}
|
||||
onChange={(e) => props.onChange?.(e)}
|
||||
>
|
||||
<input
|
||||
checked={true}
|
||||
@ -18,7 +18,10 @@ export const VideoSwitchButton = (props: VideoSwitchButtonProps) => (
|
||||
class="video-switch-button-checkbox"
|
||||
type="checkbox"
|
||||
/>
|
||||
<label class="video-switch-button-label" for="video-toggle-video-switch-button-checkbox">
|
||||
<label
|
||||
class="video-switch-button-label"
|
||||
for="video-toggle-video-switch-button-checkbox"
|
||||
>
|
||||
<span class="video-switch-button-label-span">{props.songButtonText}</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user