mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-04 03:36:29 +08:00
- Replaced custom button implementations with StyledButton in various components including DetailScreen, HomeScreen, SearchScreen, and SettingsModal. - Updated button styles and behaviors to align with the new StyledButton component. - Removed the obsolete DetailButton component to streamline the codebase.
17 lines
462 B
TypeScript
17 lines
462 B
TypeScript
import React, { ComponentProps } from "react";
|
|
import { StyledButton } from "./StyledButton";
|
|
import { StyleSheet } from "react-native";
|
|
|
|
type StyledButtonProps = ComponentProps<typeof StyledButton>;
|
|
|
|
export const MediaButton = (props: StyledButtonProps) => (
|
|
<StyledButton {...props} style={[styles.mediaControlButton, props.style]} variant="ghost" />
|
|
);
|
|
|
|
const styles = StyleSheet.create({
|
|
mediaControlButton: {
|
|
padding: 12,
|
|
minWidth: 80,
|
|
},
|
|
});
|