mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(packages): derive default props from core classes (#488)
This commit is contained in:
@@ -18,7 +18,7 @@ export const FullscreenButton = forwardRef(function FullscreenButton(
|
||||
componentProps: FullscreenButtonProps,
|
||||
forwardedRef: ForwardedRef<HTMLButtonElement>
|
||||
) {
|
||||
const { render, className, style, label, disabled = false, ...elementProps } = componentProps;
|
||||
const { render, className, style, label, disabled, ...elementProps } = componentProps;
|
||||
|
||||
const fullscreen = usePlayer(selectFullscreen);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ export const MuteButton = forwardRef(function MuteButton(
|
||||
componentProps: MuteButtonProps,
|
||||
forwardedRef: ForwardedRef<HTMLButtonElement>
|
||||
) {
|
||||
const { render, className, style, label, disabled = false, ...elementProps } = componentProps;
|
||||
const { render, className, style, label, disabled, ...elementProps } = componentProps;
|
||||
|
||||
const volume = usePlayer(selectVolume);
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export const PlayButton = forwardRef(function PlayButton(
|
||||
componentProps: PlayButtonProps,
|
||||
forwardedRef: ForwardedRef<HTMLButtonElement>
|
||||
) {
|
||||
const { render, className, style, label, disabled = false, ...elementProps } = componentProps;
|
||||
const { render, className, style, label, disabled, ...elementProps } = componentProps;
|
||||
|
||||
const playback = usePlayer(selectPlayback);
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ export const Value = forwardRef(function Value(
|
||||
|
||||
const content = state.negative ? (
|
||||
<>
|
||||
<span aria-hidden="true">{negativeSign ?? '-'}</span>
|
||||
<span aria-hidden="true">{negativeSign ?? TimeCore.defaultProps.negativeSign}</span>
|
||||
{state.text}
|
||||
</>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user