Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
PrathameshTI committed Feb 18, 2022
1 parent 57546b7 commit a35621d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import { PLAYER_STATES } from "./constants/playerStates";

type ControlsProps = Pick<
Props,
"isLoading" | "mainColor" | "playerState" | "onReplay"
"isLoading" | "playerState" | "onReplay"
> & {
onPause: () => void;
};

const Controls = (props: ControlsProps) => {
const { isLoading, mainColor, playerState, onReplay, onPause } = props;
const { isLoading, playerState, onReplay, onPause } = props;
const icon = getPlayerStateIcon(playerState);
const pressAction = playerState === PLAYER_STATES.ENDED ? onReplay : onPause;

Expand Down
1 change: 0 additions & 1 deletion src/MediaControls.style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { StyleSheet } from "react-native";

const containerBackgroundColor = "rgba(45, 59, 62, 0.4)";
const playButtonBorderColor = "rgba(255,255,255,0.5)";
const white = "#fff";

export default StyleSheet.create({
Expand Down

0 comments on commit a35621d

Please sign in to comment.