Skip to content

Commit

Permalink
chore: reorganize types
Browse files Browse the repository at this point in the history
  • Loading branch information
esmalleydev committed Apr 13, 2024
1 parent f640a13 commit e5890dd
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/cbb/compare/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import HelperCBB from '@/components/helpers/CBB';
import HelperTeam from '@/components/helpers/Team';

import { useServerAPI } from '@/components/serverAPI';
import { Team } from '@/components/generic/types';
import { Team } from '@/types/cbb';
import { unstable_noStore } from 'next/cache';
import SubNavBar from '@/components/generic/CBB/Compare/SubNavBar';

Expand Down
2 changes: 1 addition & 1 deletion app/cbb/ranking/columns.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RankingColumns } from '@/components/generic/types';
import { RankingColumns } from '@/types/cbb';


export const getHeaderColumns = ({ rankView }: {rankView: string}) => {
Expand Down
2 changes: 1 addition & 1 deletion app/cbb/team/[team_id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import HeaderServer from '@/components/generic/CBB/Team/Header/Server';
import Trends from '@/components/generic/CBB/Team/Trends';
import NavBar from '@/components/generic/CBB/Team/NavBar';
import { useServerAPI } from '@/components/serverAPI';
import { Team } from '@/components/generic/types';
import { Team } from '@/types/cbb';
import { unstable_noStore } from 'next/cache';
import SubNavBar from '@/components/generic/CBB/Team/SubNavbar';

Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/ColumnPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import List from '@mui/material/List';
import Typography from '@mui/material/Typography';
import CheckIcon from '@mui/icons-material/Check';
import IconButton from '@mui/material/IconButton';
import { RankingColumns } from '@/components/generic/types';
import { RankingColumns } from '@/types/cbb';


const ColumnPicker = (
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Compare/Header/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SearchIcon from '@mui/icons-material/Search';
import useDebounce from '@/components/hooks/useDebounce';
import { useClientAPI } from '@/components/clientAPI';
import BackdropLoader from '@/components/generic/BackdropLoader';
import { Team } from '@/components/generic/types';
import { Team } from '@/types/cbb';
import { useAppDispatch, useAppSelector } from '@/redux/hooks';
import { setHomeTeamID, setAwayTeamID, setNextSearch } from '@/redux/features/compare-slice';

Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Compare/Trends/Client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Typography, Paper } from '@mui/material';
import HelperTeam from '@/components/helpers/Team';

import PreviousMatchupTile from '@/components/generic/CBB/Game/PreviousMatchups/Tile';
import { Game, Team, gamesDataType } from '@/components/generic/types';
import { Game, Team, gamesDataType } from '@/types/cbb';



Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/Boxscore/Client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Chip from '@mui/material/Chip';
import HelperCBB from '@/components/helpers/CBB';
import CompareStatistic from '@/components/generic/CompareStatistic';
import BackdropLoader from '@/components/generic/BackdropLoader';
import { Boxscore, PlayerBoxscore } from '@/components/generic/types';
import { Boxscore, PlayerBoxscore } from '@/types/cbb';


const StyledTableRow = styled(TableRow)(({ theme }) => ({
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/Charts/OddsML.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Paper from '@mui/material/Paper';
import Typography from '@mui/material/Typography';

import HelperCBB from '@/components/helpers/CBB';
import { ScoreIntervals } from '@/components/generic/types';
import { ScoreIntervals } from '@/types/cbb';


const OddsML = ({ cbb_game, cbb_game_score_intervals}) => {
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/Charts/OddsOverUnder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import HighchartsReact from 'highcharts-react-official';
import Paper from '@mui/material/Paper';
import Typography from '@mui/material/Typography';

import { ScoreIntervals } from '@/components/generic/types';
import { ScoreIntervals } from '@/types/cbb';


const OddsOverUnder = ({ cbb_game_score_intervals }) => {
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/Charts/OddsSpread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Paper from '@mui/material/Paper';
import Typography from '@mui/material/Typography';

import HelperCBB from '@/components/helpers/CBB';
import { ScoreIntervals } from '@/components/generic/types';
import { ScoreIntervals } from '@/types/cbb';


const OddsSpread = ({ cbb_game, cbb_game_score_intervals}) => {
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/Charts/Score.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Paper from '@mui/material/Paper';
import Typography from '@mui/material/Typography';

import HelperCBB from '@/components/helpers/CBB';
import { ScoreIntervals } from '@/components/generic/types';
import { ScoreIntervals } from '@/types/cbb';



Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/Momentum/Client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Skeleton from '@mui/material/Skeleton';
import CompareStatistic from '@/components/generic/CompareStatistic';

import HelperCBB from '@/components/helpers/CBB';
import { Game, gamesDataType } from '@/components/generic/types';
import { Game, gamesDataType } from '@/types/cbb';


// TODO update to show differential from season averages, build it into stats compare component?
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/Playbyplay/Client.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';
import React from 'react';
import Typography from '@mui/material/Typography';
import { PlaybyPlay } from '@/components/generic/types';
import { PlaybyPlay } from '@/types/cbb';


const Client = ({ cbb_game_pbp, /*tag*/}) => {
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/PreviousMatchups/Client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Chip, Typography, Paper, Skeleton } from '@mui/material';
import HelperCBB from '@/components/helpers/CBB';

import PreviousMatchupTile from '@/components/generic/CBB/Game/PreviousMatchups/Tile';
import { Game, gamesDataType } from '@/components/generic/types';
import { Game, gamesDataType } from '@/types/cbb';



Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/PreviousMatchups/Server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';

import Client from '@/components/generic/CBB/Game/PreviousMatchups/Client';
import { useServerAPI } from '@/components/serverAPI';
import { gamesDataType } from '@/components/generic/types';
import { gamesDataType } from '@/types/cbb';

const Server = async({cbb_game}) => {
// const tag = 'cbb.games.'+ cbb_game_id;
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Game/Trends/RankChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Typography from '@mui/material/Typography';
import HelperCBB from '@/components/helpers/CBB';

import moment from 'moment';
import { Ranking } from '@/components/generic/types';
import { Ranking } from '@/types/cbb';



Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Games/Contents/Client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { Suspense, useEffect, useState } from 'react';
import moment from 'moment';
import { Chip, Paper, Typography } from '@mui/material';
import { useAppDispatch, useAppSelector } from '@/redux/hooks';
import { Game } from '@/components/generic/types';
import { Game } from '@/types/cbb';
import { getHeaderHeight } from '@/components/generic/CBB/Games/SubNavBar';
import { updateConferences } from '@/redux/features/display-slice';
import Tile from '@/components/generic/CBB/Games/Tile';
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Picks/Calculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import utilsSorter from '@/components/utils/Sorter.js';


import { useAppSelector } from '@/redux/hooks';
import { Game } from '@/components/generic/types';
import { Game } from '@/types/cbb';
import { CircularProgress } from '@mui/material';
const Arrayifer = new utilsArrayifer();
const Sorter = new utilsSorter();
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/Picks/Picks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import AdditionalOptions from '@/components/generic/CBB/Picks/AdditionalOptions'
import ConferencePicker from '@/components/generic/CBB/ConferencePicker';

import { useAppDispatch, useAppSelector } from '@/redux/hooks';
import { gamesDataType } from '@/components/generic/types';
import { gamesDataType } from '@/types/cbb';
import { updateConferences } from '@/redux/features/display-slice';


Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@/lib/*": ["lib/*"],
"@/contexts/*": ["contexts/*"],
"@/app/*": ["app/*"],
"@/types/*": ["types/*"],
},
"allowJs": true,
"skipLibCheck": true,
Expand Down
File renamed without changes.

0 comments on commit e5890dd

Please sign in to comment.