files merged
This commit is contained in:
parent
8b583c4f8b
commit
dcaa3d8d14
|
|
@ -6,7 +6,7 @@ import { useMemo, useState, useRef, useEffect } from "react";
|
|||
import search from "../../icons/search.svg";
|
||||
|
||||
// Types
|
||||
import { PlayersData } from "../../types/playersData";
|
||||
import { PlayersData } from "../../types/players";
|
||||
|
||||
// Helpers
|
||||
import { searchFull, assembleData } from "../../helpers/searchTable";
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { hosting } from "../../links";
|
|||
import PlayIcon from "./PlayIcon";
|
||||
|
||||
// Types
|
||||
import { playerInterface } from "../../types/playerType";
|
||||
import { playerInterface } from "../../types/players";
|
||||
|
||||
const VideoPlayer = ({ videoUrl }: playerInterface) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import VideoPlayer from "../global/VideoPlayer";
|
|||
import Calendar from "../global/Calendar";
|
||||
|
||||
// Types
|
||||
import { playerType } from "../../types/playerType";
|
||||
import { playerType } from "../../types/players";
|
||||
|
||||
// Helpers
|
||||
import { getVideos } from "../../helpers/apiRequests";
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
export type playerType = [string, React.Dispatch<string>];
|
||||
export interface playerInterface {
|
||||
videoUrl: string;
|
||||
}
|
||||
|
|
@ -5,3 +5,21 @@ export interface Player {
|
|||
img: string;
|
||||
average: number;
|
||||
}
|
||||
|
||||
export interface PlayersData {
|
||||
id: string;
|
||||
title: string;
|
||||
surname: string;
|
||||
name: string;
|
||||
birth: string;
|
||||
classical: string;
|
||||
rapid: string;
|
||||
blitz: string;
|
||||
}
|
||||
|
||||
// Used in SearchTable.tsx
|
||||
|
||||
export type playerType = [string, React.Dispatch<string>];
|
||||
export interface playerInterface {
|
||||
videoUrl: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
export interface PlayersData {
|
||||
id: string;
|
||||
title: string;
|
||||
surname: string;
|
||||
name: string;
|
||||
birth: string;
|
||||
classical: string;
|
||||
rapid: string;
|
||||
blitz: string;
|
||||
}
|
||||
|
||||
// Used in SearchTable.tsx
|
||||
Loading…
Reference in New Issue