mirror of
https://github.com/tomru/advcal.git
synced 2026-03-03 06:27:17 +01:00
clean up imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useContext } from "react";
|
||||
import { useContext } from "react";
|
||||
|
||||
import AppContext from "../context/app";
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import React, { useEffect, useState, Fragment } from "react";
|
||||
|
||||
export const ENDED = 0;
|
||||
export const PLAYING = 1;
|
||||
export const PAUSED = 2;
|
||||
|
||||
const Controls = ({ playerState, onPause, onPlay, onRestart }) => {
|
||||
return (
|
||||
<Fragment>
|
||||
<>
|
||||
<div className="player-controls">
|
||||
{playerState === PLAYING && (
|
||||
<a onClick={onPause} title="Pause">
|
||||
@@ -37,7 +35,7 @@ const Controls = ({ playerState, onPause, onPlay, onRestart }) => {
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
</Fragment>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
const Header = () => {
|
||||
const [gifUrl, setGifUrl] = useState(null);
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import React, { useEffect, useState, Fragment, useContext } from "react";
|
||||
import { useEffect, useState, Fragment, useContext } from "react";
|
||||
import youtubePlayer from "youtube-player";
|
||||
|
||||
import AppContext from "../context/app";
|
||||
|
||||
import Controls, { ENDED, PLAYING, PAUSED } from "./controls";
|
||||
import Controls, { ENDED, PAUSED } from "./controls";
|
||||
|
||||
let player;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useContext } from "react";
|
||||
import { useState, useContext } from "react";
|
||||
|
||||
import AppContext from "../context/app";
|
||||
import Player from "./player";
|
||||
|
||||
Reference in New Issue
Block a user