files merged

This commit is contained in:
VividTruthKeeper 2022-08-19 22:55:34 +05:00
parent 8b583c4f8b
commit dcaa3d8d14
6 changed files with 21 additions and 19 deletions

View File

@ -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";

View File

@ -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 (

View File

@ -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";

View File

@ -1,4 +0,0 @@
export type playerType = [string, React.Dispatch<string>];
export interface playerInterface {
videoUrl: string;
}

View File

@ -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;
}

View File

@ -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