update deps

This commit is contained in:
Kalle (Sendou) 2020-11-16 23:14:39 +02:00
parent 60e3e292fd
commit 625afad4b2
148 changed files with 1711 additions and 1003 deletions

View File

@ -7,7 +7,7 @@ import {
PopoverBody,
PopoverContent,
PopoverTrigger,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { Plural, t, Trans } from "@lingui/macro";
import { Ability } from "@prisma/client";
import UserAvatar from "components/common/UserAvatar";

View File

@ -9,7 +9,7 @@ import {
NumberInputStepper,
Radio,
Select,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import { Ability } from "@prisma/client";
import AbilityIcon from "components/common/AbilityIcon";
@ -44,7 +44,7 @@ const BuildFilters: React.FC<Props> = ({ filters, dispatch }) => {
<>
<Box mb="-1.2rem" />
<Box mb="-1.2rem" />
<Box mb="-1.2rem" fontSize="sm" color={gray}>
<Box mb="-1.2rem" fontSize="sm" color={gray} pr={2}>
{isMainAbility(filter.ability) ? (
<Trans>Included</Trans>
) : (
@ -55,7 +55,7 @@ const BuildFilters: React.FC<Props> = ({ filters, dispatch }) => {
{isMainAbility(filter.ability) ? (
<Trans>Excluded</Trans>
) : (
<Trans>Min AP</Trans>
<Trans>Max AP</Trans>
)}
</Box>
<IconButton
@ -65,6 +65,7 @@ const BuildFilters: React.FC<Props> = ({ filters, dispatch }) => {
variant="ghost"
isRound
/>
{/* FIXME: duplicate image bug */}
<Box mx={2}>
<AbilityIcon ability={filter.ability} size="TINY" />
</Box>

View File

@ -1,4 +1,4 @@
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import GearImage from "components/common/GearImage";
import { Unpacked } from "lib/types";
import { GetBuildsByWeaponData } from "prisma/queries/getBuildsByWeapon";

View File

@ -1,4 +1,4 @@
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import { t } from "@lingui/macro";
import { Ability } from "@prisma/client";
import AbilityIcon from "components/common/AbilityIcon";

View File

@ -1,4 +1,4 @@
import { Box, BoxProps, Flex } from "@chakra-ui/core";
import { Box, BoxProps, Flex } from "@chakra-ui/react";
import AbilityIcon from "components/common/AbilityIcon";
import { Unpacked } from "lib/types";
import { GetBuildsByWeaponData } from "prisma/queries/getBuildsByWeapon";

View File

@ -1,4 +1,4 @@
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import Image from "next/image";
//https://github.com/loadout-ink/splat2-calc

View File

@ -3,7 +3,7 @@ import {
Breadcrumb,
BreadcrumbItem,
BreadcrumbLink,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import { useMyTheme } from "lib/useMyTheme";
import NextLink from "next/link";

View File

@ -1,4 +1,4 @@
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import { useEffect, useRef, useState } from "react";
interface Props {

View File

@ -1,4 +1,4 @@
import { CircularProgress, CircularProgressProps } from "@chakra-ui/core";
import { CircularProgress, CircularProgressProps } from "@chakra-ui/react";
interface Props {
currentLength: number;

View File

@ -8,7 +8,7 @@ import {
List,
ListItem,
Text,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import Emoji from "components/common/Emoji";
import {
Table,

View File

@ -5,7 +5,7 @@ import {
FormHelperText,
FormLabel,
Textarea,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import { FieldError } from "react-hook-form";
import LimitProgress from "./LimitProgress";

View File

@ -1,4 +1,4 @@
import { Select, Tag, TagCloseButton, TagLabel } from "@chakra-ui/core";
import { Select, Tag, TagCloseButton, TagLabel } from "@chakra-ui/react";
import { useLingui } from "@lingui/react";
import { weaponsWithHeroCategorizedLocalized } from "lib/lists/weaponsWithHero";
import WeaponImage from "./WeaponImage";

View File

@ -1,4 +1,4 @@
import { Box, BoxProps } from "@chakra-ui/core";
import { Box, BoxProps } from "@chakra-ui/react";
import { useMyTheme } from "lib/useMyTheme";
const Section: React.FC<BoxProps> = (props) => {

View File

@ -1,6 +1,6 @@
// https://github.com/chakra-ui/chakra-ui/issues/135#issuecomment-644878591
import { Box, BoxProps } from "@chakra-ui/core";
import { Box, BoxProps } from "@chakra-ui/react";
import { useMyTheme } from "lib/useMyTheme";
/**

View File

@ -1,4 +1,4 @@
import { Avatar, AvatarProps } from "@chakra-ui/core";
import { Avatar, AvatarProps } from "@chakra-ui/react";
import { User } from "@prisma/client";
import React from "react";

View File

@ -1,4 +1,4 @@
import { Select } from "@chakra-ui/core";
import { Select } from "@chakra-ui/react";
import { useLingui } from "@lingui/react";
import { weaponsWithHeroCategorizedLocalized } from "lib/lists/weaponsWithHero";

View File

@ -1,4 +1,4 @@
import { Box, Image, useColorModeValue } from "@chakra-ui/core";
import { Box, Image, useColorModeValue } from "@chakra-ui/react";
import { useMyTheme } from "lib/useMyTheme";
import { useRouter } from "next/dist/client/router";
import footerOctoDark from "public/layout/b8ing_dark.png";

View File

@ -1,4 +1,4 @@
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import { DiscordIcon } from "lib/assets/icons";
import { useTranslation } from "lib/useMockT";
import { useMyTheme } from "lib/useMyTheme";

View File

@ -6,7 +6,7 @@ import {
MenuGroup,
MenuItem,
MenuList,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { useTranslation } from "lib/useMockT";
import { useMyTheme } from "lib/useMyTheme";
import { useRouter } from "next/dist/client/router";

View File

@ -5,7 +5,7 @@ import {
MenuItemOption,
MenuList,
MenuOptionGroup,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { useTranslation } from "lib/useMockT";
import { useMyTheme } from "lib/useMyTheme";
import React from "react";

View File

@ -11,7 +11,7 @@ import {
MenuItem,
MenuList,
useColorMode,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import { DiscordIcon } from "lib/assets/icons";
import useUser from "lib/useUser";

View File

@ -1,4 +1,4 @@
import { Container, Flex, useToast } from "@chakra-ui/core";
import { Container, Flex, useToast } from "@chakra-ui/react";
import { t } from "@lingui/macro";
import { getToastOptions } from "lib/getToastOptions";
import { AppProps } from "next/app";

View File

@ -1,4 +1,4 @@
import { Box, Flex, Image } from "@chakra-ui/core";
import { Box, Flex, Image } from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import WeaponImage from "components/common/WeaponImage";
import { weapons } from "lib/lists/weapons";

View File

@ -1,4 +1,4 @@
import { Box, Flex, IconButton } from "@chakra-ui/core";
import { Box, Flex, IconButton } from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import ColorPicker from "components/common/ColorPicker";
import { useMyTheme } from "lib/useMyTheme";

View File

@ -1,4 +1,4 @@
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import { SketchField } from "@sendou/react-sketch";
import { Tool } from ".";

View File

@ -1,4 +1,11 @@
import { Box, HStack, Image, Radio, RadioGroup, Select } from "@chakra-ui/core";
import {
Box,
HStack,
Image,
Radio,
RadioGroup,
Select,
} from "@chakra-ui/react";
import { t, Trans } from "@lingui/macro";
import { useLingui } from "@lingui/react";
import salmonRunHighTide from "assets/SalmonRunHighTide.svg";

View File

@ -1,4 +1,4 @@
import { Button, ButtonGroup, Flex } from "@chakra-ui/core";
import { Button, ButtonGroup, Flex } from "@chakra-ui/react";
import { t, Trans } from "@lingui/macro";
import Breadcrumbs from "components/common/Breadcrumbs";
import { stages } from "lib/lists/stages";

View File

@ -1,4 +1,4 @@
import { Text } from "@chakra-ui/core";
import { Text } from "@chakra-ui/react";
import ModeImage from "components/common/ModeImage";
import {
Table,

View File

@ -1,4 +1,4 @@
import { Text } from "@chakra-ui/core";
import { Text } from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import {
Table,

View File

@ -5,7 +5,7 @@ import {
Heading,
IconButton,
Link as ChakraLink,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { Trans } from "@lingui/macro";
import { RankedMode } from "@prisma/client";
import ModeImage from "components/common/ModeImage";

View File

@ -16,7 +16,7 @@ import {
ModalOverlay,
Select,
useToast,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { zodResolver } from "@hookform/resolvers/zod";
import { t, Trans } from "@lingui/macro";
import { useLingui } from "@lingui/react";

View File

@ -1,4 +1,4 @@
import { UseToastOptions } from "@chakra-ui/core";
import { UseToastOptions } from "@chakra-ui/react";
export const getToastOptions = (
description: NonNullable<UseToastOptions["description"]>,

View File

@ -1,4 +1,4 @@
import { useColorMode } from "@chakra-ui/core";
import { useColorMode } from "@chakra-ui/react";
import { theme } from "theme";
// This hook can be deprecated

View File

@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@apollo/client": "^3.3.0-beta.6",
"@chakra-ui/core": "^1.0.0-rc.5",
"@chakra-ui/react": "^1.0.0-rc.5",
"@reach/router": "^1.3.4",
"@rehooks/local-storage": "^2.4.0",
"@sendou/react-sketch": "^0.5.2",

View File

@ -1,5 +1,5 @@
// @ts-nocheck
import { Box, Flex, Heading, Image } from "@chakra-ui/core";
import { Box, Flex, Heading, Image } from "@chakra-ui/react";
import React from "react";
import { AiOutlineReload } from "react-icons/ai";
import errorGirl from "./assets/error_girl.png";

View File

@ -1,10 +1,10 @@
import { useQuery } from "@apollo/client";
import { Box, Button, Flex, useToast } from "@chakra-ui/core";
import { Box, Button, Flex, useToast } from "@chakra-ui/react";
import { Redirect, RouteComponentProps } from "@reach/router";
import React, { useState } from "react";
import {
MutationUpdatePlayerIdArgs,
useUpdatePlayerIdMutation,
MutationUpdatePlayerIdArgs,
useUpdatePlayerIdMutation
} from "../../generated/graphql";
import { USER } from "../../graphql/queries/user";
import { UserData } from "../../types";

View File

@ -1,10 +1,10 @@
import { useMutation, useQuery } from "@apollo/client";
import { Box, Button, useToast } from "@chakra-ui/core";
import { Box, Button, useToast } from "@chakra-ui/react";
import React, { useState } from "react";
import { END_VOTING } from "../../graphql/mutations/endVoting";
import {
StartVotingVars,
START_VOTING,
StartVotingVars,
START_VOTING
} from "../../graphql/mutations/startVoting";
import { PlusInfoData, PLUS_INFO } from "../../graphql/queries/plusInfo";
import Error from "../common/Error";

View File

@ -1,12 +1,12 @@
import {
Badge,
Box,
Button,
Flex,
FormLabel,
Switch,
Wrap,
} from "@chakra-ui/core";
Badge,
Box,
Button,
Flex,
FormLabel,
Switch,
Wrap
} from "@chakra-ui/react";
import { RouteComponentProps, useLocation } from "@reach/router";
import React, { useContext, useEffect, useState } from "react";
import { Helmet } from "react-helmet-async";

View File

@ -1,12 +1,12 @@
import {
Box,
Flex,
IconButton,
Popover,
PopoverContent,
PopoverTrigger,
Progress,
} from "@chakra-ui/core";
Box,
Flex,
IconButton,
Popover,
PopoverContent,
PopoverTrigger,
Progress
} from "@chakra-ui/react";
import React, { useContext, useState } from "react";
import { FaChartLine, FaQuestion } from "react-icons/fa";
import { Explanation } from "../../hooks/useAbilityEffects";

View File

@ -1,19 +1,19 @@
import { Box, Button, Flex, IconButton } from "@chakra-ui/core";
import { Box, Button, Flex, IconButton } from "@chakra-ui/react";
import React from "react";
import { useTranslation } from "react-i18next";
import { FiCopy, FiEdit, FiSquare } from "react-icons/fi";
import {
Ability,
AnalyzerBuild,
ClothingOnlyAbility,
HeadOnlyAbility,
ShoesOnlyAbility,
StackableAbility,
Ability,
AnalyzerBuild,
ClothingOnlyAbility,
HeadOnlyAbility,
ShoesOnlyAbility,
StackableAbility
} from "../../types";
import {
clothingOnlyAbilities,
headOnlyAbilities,
shoesOnlyAbilities,
clothingOnlyAbilities,
headOnlyAbilities,
shoesOnlyAbilities
} from "../../utils/lists";
import ViewSlots from "../builds/ViewSlots";
import AbilityButtons from "../user/AbilityButtons";

View File

@ -1,8 +1,8 @@
import { Box, Flex, FormLabel, Switch } from "@chakra-ui/react";
import React, { useContext } from "react";
import { Box, Switch, FormLabel, Flex } from "@chakra-ui/core";
import { useTranslation } from "react-i18next";
import MyThemeContext from "../../themeContext";
import AbilityIcon from "../builds/AbilityIcon";
import { useTranslation } from "react-i18next";
interface HeadOnlyToggleProps {
ability: "OG" | "CB";

View File

@ -1,13 +1,13 @@
import {
Box,
Flex,
NumberDecrementStepper,
NumberIncrementStepper,
NumberInput,
NumberInputField,
NumberInputStepper,
Text,
} from "@chakra-ui/core";
Box,
Flex,
NumberDecrementStepper,
NumberIncrementStepper,
NumberInput,
NumberInputField,
NumberInputStepper,
Text
} from "@chakra-ui/react";
import React, { useContext } from "react";
import { Trans, useTranslation } from "react-i18next";
import MyThemeContext from "../../themeContext";

View File

@ -1,4 +1,4 @@
import { Box, Button, Flex } from "@chakra-ui/core";
import { Box, Button, Flex } from "@chakra-ui/react";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { FaFilter } from "react-icons/fa";

View File

@ -1,14 +1,14 @@
import {
Box,
BoxProps,
Flex,
IconButton,
Image,
Popover,
PopoverBody,
PopoverContent,
PopoverTrigger,
} from "@chakra-ui/core";
Box,
BoxProps,
Flex,
IconButton,
Image,
Popover,
PopoverBody,
PopoverContent,
PopoverTrigger
} from "@chakra-ui/react";
import { Link } from "@reach/router";
import React, { useContext, useEffect, useState } from "react";
import { Trans, useTranslation } from "react-i18next";

View File

@ -1,4 +1,4 @@
import { Button } from "@chakra-ui/core";
import { Button } from "@chakra-ui/react";
import { Link } from "@reach/router";
import React from "react";
import { RiTShirtAirLine } from "react-icons/ri";

View File

@ -1,5 +1,5 @@
import { useQuery } from "@apollo/client";
import { Box, Button, Flex, FormLabel, Heading, Switch } from "@chakra-ui/core";
import { Box, Button, Flex, FormLabel, Heading, Switch } from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import useLocalStorage from "@rehooks/local-storage";
import React, { useContext, useState } from "react";
@ -13,7 +13,7 @@ import {
Build,
SearchForBuildsData,
SearchForBuildsVars,
Weapon,
Weapon
} from "../../types";
import Error from "../common/Error";
import Loading from "../common/Loading";

View File

@ -1,8 +1,8 @@
import { Box } from "@chakra-ui/react";
import React from "react";
import { HeadGear, ClothingGear, ShoesGear } from "../../types";
import english_internal from "../../utils/english_internal.json";
import { Box } from "@chakra-ui/core";
import { useTranslation } from "react-i18next";
import { ClothingGear, HeadGear, ShoesGear } from "../../types";
import english_internal from "../../utils/english_internal.json";
interface GearImageProps {
englishName?: HeadGear | ClothingGear | ShoesGear;

View File

@ -1,7 +1,7 @@
import { Box, Flex } from "@chakra-ui/react";
import React from "react";
import { Build } from "../../types";
import GearImage from "./GearImage";
import { Flex, Box } from "@chakra-ui/core";
interface GearsProps {
build: Build;

View File

@ -1,13 +1,13 @@
// This while is bit of a mess from TS PoV - might be worth while to do it better later
import { Box, Flex } from "@chakra-ui/react";
import React, { useContext } from "react";
import { Build, Ability } from "../../types";
import { Box, Flex } from "@chakra-ui/core";
import { useTranslation } from "react-i18next";
import MyThemeContext from "../../themeContext";
import { Ability, Build } from "../../types";
import { mainOnlyAbilities } from "../../utils/lists";
import DividingBox from "../common/DividingBox";
import AbilityIcon from "./AbilityIcon";
import MyThemeContext from "../../themeContext";
import { mainOnlyAbilities } from "../../utils/lists";
import { useTranslation } from "react-i18next";
interface ViewAPProps {
build: Build;

View File

@ -1,7 +1,7 @@
import { Box, BoxProps, Flex } from "@chakra-ui/react";
import React from "react";
import { Build, Ability } from "../../types";
import { Ability, Build } from "../../types";
import AbilityIcon from "./AbilityIcon";
import { Flex, Box, BoxProps } from "@chakra-ui/core";
interface ViewSlotsProps {
build: Partial<Build>;

View File

@ -1,12 +1,12 @@
import { useQuery } from "@apollo/client";
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import { RouteComponentProps, useLocation } from "@reach/router";
import React, { useContext, useEffect, useRef, useState } from "react";
import { Helmet } from "react-helmet-async";
import { Trans, useTranslation } from "react-i18next";
import {
UpcomingEventsData,
UPCOMING_EVENTS,
UpcomingEventsData,
UPCOMING_EVENTS
} from "../../graphql/queries/upcomingEvents";
import MyThemeContext from "../../themeContext";
import { getWeek } from "../../utils/helperFunctions";

View File

@ -1,5 +1,5 @@
import { useQuery } from "@apollo/client";
import { Box, Flex, Heading, Image } from "@chakra-ui/core";
import { Box, Flex, Heading, Image } from "@chakra-ui/react";
import { Link } from "@reach/router";
import React, { useContext, useState } from "react";
import { useTranslation } from "react-i18next";

View File

@ -1,26 +1,26 @@
import { useMutation } from "@apollo/client";
import {
Box,
Button,
Flex,
FormControl,
FormErrorMessage,
FormHelperText,
Image,
useToast,
} from "@chakra-ui/core";
Box,
Button,
Flex,
FormControl,
FormErrorMessage,
FormHelperText,
Image,
useToast
} from "@chakra-ui/react";
import React, { useState } from "react";
import {
DeleteCompetitiveFeedEventVars,
DELETE_COMPETITIVE_FEED_EVENT,
DeleteCompetitiveFeedEventVars,
DELETE_COMPETITIVE_FEED_EVENT
} from "../../graphql/mutations/deleteCompetitiveFeedEvent";
import {
UpdateCompetitiveFeedEventVars,
UPDATE_COMPETITIVE_FEED_EVENT,
UpdateCompetitiveFeedEventVars,
UPDATE_COMPETITIVE_FEED_EVENT
} from "../../graphql/mutations/updateCompetitiveFeedEvent";
import {
CompetitiveFeedEvent,
UPCOMING_EVENTS,
CompetitiveFeedEvent,
UPCOMING_EVENTS
} from "../../graphql/queries/upcomingEvents";
import DatePicker from "../elements/DatePicker";
import Input from "../elements/Input";

View File

@ -1,5 +1,5 @@
import { Box } from "@chakra-ui/react";
import React, { useContext } from "react";
import { Box } from "@chakra-ui/core";
import MyThemeContext from "../../themeContext";
interface DividingBoxProps {

View File

@ -1,4 +1,4 @@
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import React, { useContext } from "react";
import MyThemeContext from "../../themeContext";

View File

@ -1,5 +1,5 @@
import React, { useState, useEffect, useContext } from "react";
import { Spinner, Box } from "@chakra-ui/core";
import { Box, Spinner } from "@chakra-ui/react";
import React, { useContext, useEffect, useState } from "react";
import MyThemeContext from "../../themeContext";
const Loading: React.FC = () => {

View File

@ -1,6 +1,5 @@
import React from "react";
import { Heading } from "@chakra-ui/core";
import { useContext } from "react";
import { Heading } from "@chakra-ui/react";
import React, { useContext } from "react";
import MyThemeContext from "../../themeContext";
interface PageHeaderProps {

View File

@ -1,4 +1,4 @@
import { Button } from "@chakra-ui/core";
import { Button } from "@chakra-ui/react";
import React from "react";
import { useTranslation } from "react-i18next";
import ReactPaginate from "react-paginate";

View File

@ -1,4 +1,4 @@
import { Box, BoxProps } from "@chakra-ui/core";
import { Box, BoxProps } from "@chakra-ui/react";
import React, { useContext } from "react";
import MyThemeContext from "../../themeContext";

View File

@ -1,6 +1,6 @@
// https://github.com/chakra-ui/chakra-ui/issues/135#issuecomment-644878591
import { Box, BoxProps } from "@chakra-ui/core";
import { Box, BoxProps } from "@chakra-ui/react";
import React, { useContext } from "react";
import MyThemeContext from "../../themeContext";

View File

@ -1,4 +1,4 @@
import { Avatar, AvatarProps } from "@chakra-ui/core";
import { Avatar, AvatarProps } from "@chakra-ui/react";
import React, { useState } from "react";
interface UserAvatarProps {

View File

@ -1,11 +1,11 @@
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import React from "react";
import { useTranslation } from "react-i18next";
import { components } from "react-select";
import { Weapon } from "../../types";
import {
weaponSelectOptions,
weaponSelectOptionsWithAlts,
weaponSelectOptions,
weaponSelectOptionsWithAlts
} from "../../utils/lists";
import Select from "../elements/Select";
import WeaponImage from "./WeaponImage";

View File

@ -1,9 +1,9 @@
import {
Alert as ChakraAlert,
AlertIcon,
AlertProps as ChakraAlertProps,
CloseButton,
} from "@chakra-ui/core";
Alert as ChakraAlert,
AlertIcon,
AlertProps as ChakraAlertProps,
CloseButton
} from "@chakra-ui/react";
import React from "react";
interface AlertProps {

View File

@ -1,4 +1,4 @@
import { Button } from "@chakra-ui/core";
import { Button } from "@chakra-ui/react";
import React, { forwardRef } from "react";
import HackerOneDatePicker from "react-datepicker";
import "react-datepicker/src/stylesheets/datepicker.scss";

View File

@ -1,14 +1,14 @@
import { Image } from "@chakra-ui/react";
import React from "react";
import WeaponImage from "../common/WeaponImage";
import { weaponCodes, abilityCodes, gearCodes } from "../../utils/lists";
import AbilityIcon from "../builds/AbilityIcon";
import GearImage from "../builds/GearImage";
import cb from "../../assets/cb.png";
import rm from "../../assets/rm.png";
import sz from "../../assets/sz.png";
import tc from "../../assets/tc.png";
import rm from "../../assets/rm.png";
import cb from "../../assets/cb.png";
import tw from "../../assets/tw.png";
import { Image } from "@chakra-ui/core";
import { abilityCodes, gearCodes, weaponCodes } from "../../utils/lists";
import AbilityIcon from "../builds/AbilityIcon";
import GearImage from "../builds/GearImage";
import WeaponImage from "../common/WeaponImage";
const modeCodes: Record<string, string> = {
turf_war: tw,

View File

@ -1,9 +1,8 @@
import React from "react";
import {
IconButton as ChakraIconButton,
IconButtonProps as ChakraIconButtonProps,
} from "@chakra-ui/core";
import { useContext } from "react";
IconButton as ChakraIconButton,
IconButtonProps as ChakraIconButtonProps
} from "@chakra-ui/react";
import React, { useContext } from "react";
import MyThemeContext from "../../themeContext";
interface IconButtonProps {

View File

@ -1,11 +1,11 @@
import {
Box,
BoxProps,
Input as ChakraInput,
InputGroup,
InputLeftAddon,
InputLeftElement,
} from "@chakra-ui/core";
Box,
BoxProps,
Input as ChakraInput,
InputGroup,
InputLeftAddon,
InputLeftElement
} from "@chakra-ui/react";
import React, { useContext } from "react";
import { IconType } from "react-icons/lib/cjs";
import MyThemeContext from "../../themeContext";

View File

@ -1,5 +1,5 @@
import { Box } from "@chakra-ui/react";
import React from "react";
import { Box } from "@chakra-ui/core";
interface LabelProps {
required?: boolean;

View File

@ -1,25 +1,25 @@
import {
Checkbox,
Code,
Divider,
Heading,
Image,
Link,
List,
ListItem,
Text,
} from "@chakra-ui/core";
Checkbox,
Code,
Divider,
Heading,
Image,
Link,
List,
ListItem,
Text
} from "@chakra-ui/react";
import React, { useContext } from "react";
import ReactMarkdown from "react-markdown";
import reactStringReplace from "react-string-replace";
import MyThemeContext from "../../themeContext";
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow
} from "../common/Table";
import Emoji from "./Emoji";

View File

@ -1,4 +1,4 @@
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import React, { useContext, useEffect } from "react";
import { MdClose } from "react-icons/md";
import useOnClickOutside from "use-onclickoutside";

View File

@ -1,10 +1,10 @@
import React, { useContext } from "react";
import {
RadioGroup as ChakraRadioGroup,
Radio,
Box,
Stack,
} from "@chakra-ui/core";
Box, Radio, RadioGroup as ChakraRadioGroup,
Stack
} from "@chakra-ui/react";
import React, { useContext } from "react";
import MyThemeContext from "../../themeContext";
interface RadioGroupProps {

View File

@ -1,4 +1,4 @@
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import React, { useContext, useState } from "react";
import { useTranslation } from "react-i18next";
import ReactSelect, { GroupedOptionsType, OptionsType } from "react-select";

View File

@ -1,4 +1,4 @@
import { Box, Textarea } from "@chakra-ui/core";
import { Box, Textarea } from "@chakra-ui/react";
import React, { useContext } from "react";
import MyThemeContext from "../../themeContext";
import Label from "./Label";

View File

@ -1,4 +1,4 @@
import { Box, Button, Flex, Heading } from "@chakra-ui/core";
import { Box, Button, Flex, Heading } from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import React, { useState } from "react";
import InTheZoneBanner from "./InTheZoneBanner";

View File

@ -1,4 +1,4 @@
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import React from "react";
//https://stackoverflow.com/a/19303725

View File

@ -1,23 +1,23 @@
import { useMutation } from "@apollo/client";
import {
Box,
Button,
Checkbox,
CheckboxGroup,
Flex,
FormControl,
FormErrorMessage,
FormLabel,
Radio,
RadioGroup,
Stack,
useToast,
} from "@chakra-ui/core";
Box,
Button,
Checkbox,
CheckboxGroup,
Flex,
FormControl,
FormErrorMessage,
FormLabel,
Radio,
RadioGroup,
Stack,
useToast
} from "@chakra-ui/react";
import React, { useContext, useState } from "react";
import { useTranslation } from "react-i18next";
import {
AddFreeAgentPostVars,
ADD_FREE_AGENT_POST,
AddFreeAgentPostVars,
ADD_FREE_AGENT_POST
} from "../../graphql/mutations/addFreeAgentPost";
import { HIDE_FREE_AGENT_POST } from "../../graphql/mutations/hideFreeAgentPost";
import { UPDATE_FREE_AGENT_POST } from "../../graphql/mutations/updateFreeAgentPost";

View File

@ -1,5 +1,5 @@
import { useMutation, useQuery } from "@apollo/client";
import { Box, Flex, Heading, IconButton, Image } from "@chakra-ui/core";
import { Box, Flex, Heading, IconButton, Image } from "@chakra-ui/react";
import { Link } from "@reach/router";
import React, { useContext, useState } from "react";
import { useTranslation } from "react-i18next";

View File

@ -1,21 +1,21 @@
import { useQuery } from "@apollo/client";
import { Box, Button, Collapse, Flex } from "@chakra-ui/core";
import { Box, Button, Collapse, Flex } from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import React, { useState } from "react";
import { Helmet } from "react-helmet-async";
import { useTranslation } from "react-i18next";
import { FaFilter } from "react-icons/fa";
import {
FreeAgentMatchesData,
FREE_AGENT_MATCHES,
FreeAgentMatchesData,
FREE_AGENT_MATCHES
} from "../../graphql/queries/freeAgentMatches";
import { FREE_AGENT_POSTS } from "../../graphql/queries/freeAgentPosts";
import { USER } from "../../graphql/queries/user";
import {
FreeAgentPost,
FreeAgentPostsData,
UserData,
Weapon,
FreeAgentPost,
FreeAgentPostsData,
UserData,
Weapon
} from "../../types";
import { continents } from "../../utils/lists";
import Error from "../common/Error";

View File

@ -1,8 +1,8 @@
import { Flex, Popover, PopoverContent, PopoverTrigger } from "@chakra-ui/react";
import React, { useContext } from "react";
import IconButton from "../elements/IconButton";
import { FaRegHeart, FaHeart } from "react-icons/fa";
import { Popover, PopoverTrigger, PopoverContent, Flex } from "@chakra-ui/core";
import { FaHeart, FaRegHeart } from "react-icons/fa";
import MyThemeContext from "../../themeContext";
import IconButton from "../elements/IconButton";
interface HeartProps {
disabled: boolean;

View File

@ -1,18 +1,16 @@
import React, { useContext } from "react";
import FieldsetWithLegend from "../common/FieldsetWithLegend";
import {
Flex,
Box,
Popover,
PopoverTrigger,
PopoverContent,
PopoverArrow,
AvatarGroup,
Avatar,
} from "@chakra-ui/core";
import UserAvatar from "../common/UserAvatar";
Avatar, AvatarGroup, Box, Flex,
Popover,
PopoverArrow, PopoverContent, PopoverTrigger
} from "@chakra-ui/react";
import React, { useContext } from "react";
import { Trans, useTranslation } from "react-i18next";
import MyThemeContext from "../../themeContext";
import { useTranslation, Trans } from "react-i18next";
import FieldsetWithLegend from "../common/FieldsetWithLegend";
import UserAvatar from "../common/UserAvatar";
interface MatchesProps {
matches: {

View File

@ -1,4 +1,4 @@
import { Box, Button, Grid, Heading } from "@chakra-ui/core";
import { Box, Button, Grid, Heading } from "@chakra-ui/react";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import InfiniteScroll from "react-infinite-scroller";

View File

@ -1,7 +1,7 @@
import { Box, Flex } from "@chakra-ui/react";
import React from "react";
import { Flex, Box } from "@chakra-ui/core";
import { FaCrosshairs, FaBriefcaseMedical, FaAnchor } from "react-icons/fa";
import { useTranslation } from "react-i18next";
import { FaAnchor, FaBriefcaseMedical, FaCrosshairs } from "react-icons/fa";
interface RoleIconsProps {
playstyles: ("FRONTLINE" | "MIDLINE" | "BACKLINE")[];

View File

@ -1,7 +1,7 @@
import { Box } from "@chakra-ui/react";
import React from "react";
import { Box } from "@chakra-ui/core";
import { FaMicrophone } from "react-icons/fa";
import { useTranslation } from "react-i18next";
import { FaMicrophone } from "react-icons/fa";
interface VCIconProps {
canVC: "YES" | "USUALLY" | "SOMETIMES" | "NO";

View File

@ -1,4 +1,4 @@
import { Box, Button, Flex, Heading, Image } from "@chakra-ui/core";
import { Box, Button, Flex, Heading, Image } from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import React, { useContext } from "react";
import { Helmet } from "react-helmet-async";

View File

@ -1,5 +1,5 @@
import { useQuery } from "@apollo/client";
import { Box, Flex, Skeleton } from "@chakra-ui/core";
import { Box, Flex, Skeleton } from "@chakra-ui/react";
import { Link } from "@reach/router";
import React, { useContext } from "react";
import { Trans, useTranslation } from "react-i18next";

View File

@ -1,12 +1,12 @@
import { useQuery } from "@apollo/client";
import { Box, Button, Flex, Heading } from "@chakra-ui/core";
import { Box, Button, Flex, Heading } from "@chakra-ui/react";
import { Link } from "@reach/router";
import React, { useContext } from "react";
import { useTranslation } from "react-i18next";
import { FiClock, FiInfo } from "react-icons/fi";
import {
UpcomingEventsData,
UPCOMING_EVENTS,
UpcomingEventsData,
UPCOMING_EVENTS
} from "../../graphql/queries/upcomingEvents";
import MyThemeContext from "../../themeContext";
import { getWeek } from "../../utils/helperFunctions";

View File

@ -1,4 +1,4 @@
import { Box, Button, Collapse, Flex, Link } from "@chakra-ui/core";
import { Box, Button, Collapse, Flex, Link } from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import React, { useContext, useState } from "react";
import MyThemeContext from "../../themeContext";

View File

@ -1,30 +1,34 @@
import React, { useState, useContext } from "react";
import Draggable from "react-draggable";
import {
Box,
Flex,
IconButton,
Popover,
PopoverBody, PopoverContent, PopoverTrigger
} from "@chakra-ui/react";
import { Tools } from "@sendou/react-sketch";
import { useHotkeys } from "react-hotkeys-hook";
import {
Box,
Flex,
IconButton,
Popover,
PopoverTrigger,
PopoverContent,
PopoverBody,
} from "@chakra-ui/core";
import {
FaPencilAlt,
FaRegSquare,
FaRegCircle,
FaRegObjectGroup,
FaTrashAlt,
FaRedo,
FaUndo,
FaFont,
} from "react-icons/fa";
import { AiOutlineLine } from "react-icons/ai";
import MyThemeContext from "../../themeContext";
import React, { useContext, useState } from "react";
import { CirclePicker, ColorResult } from "react-color";
import Draggable from "react-draggable";
import { useHotkeys } from "react-hotkeys-hook";
import { useTranslation } from "react-i18next";
import { AiOutlineLine } from "react-icons/ai";
import {
FaFont, FaPencilAlt,
FaRedo, FaRegCircle,
FaRegObjectGroup, FaRegSquare,
FaTrashAlt,
FaUndo
} from "react-icons/fa";
import MyThemeContext from "../../themeContext";
interface PlannerColorPickerProps {
color: string;

View File

@ -1,4 +1,4 @@
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import React, { useContext, useState } from "react";
import Draggable from "react-draggable";
import { useTranslation } from "react-i18next";

View File

@ -1,14 +1,14 @@
import { Box, Button, Flex } from "@chakra-ui/core";
import { Box, Button, Flex } from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import { SketchField, Tools } from "@sendou/react-sketch";
import React, { useEffect, useLayoutEffect, useRef, useState } from "react";
import { Helmet } from "react-helmet-async";
import { useTranslation } from "react-i18next";
import {
FaBomb,
FaFileDownload,
FaFileImage,
FaFileUpload,
FaBomb,
FaFileDownload,
FaFileImage,
FaFileUpload
} from "react-icons/fa";
import useBreakPoints from "../../hooks/useBreakPoints";
import { Stage, Weapon } from "../../types";

View File

@ -1,10 +1,10 @@
import { Flex, FormLabel, Switch } from "@chakra-ui/core";
import { Flex, FormLabel, Switch } from "@chakra-ui/react";
import React, { useContext } from "react";
import { useTranslation } from "react-i18next";
import MyThemeContext from "../../themeContext";
import Select from "../elements/Select";
import ModeButtons from "../xtrends/ModeButtons";
import { PlannerMapBg } from "./MapPlannerPage";
import { useTranslation } from "react-i18next";
interface MapSelectProps {
bg: PlannerMapBg;

View File

@ -1,4 +1,4 @@
import { Box, Button, Flex, Grid } from "@chakra-ui/core";
import { Box, Button, Flex, Grid } from "@chakra-ui/react";
import React, { useContext, useState } from "react";
import MyThemeContext from "../../themeContext";
import { months } from "../../utils/lists";

View File

@ -1,12 +1,12 @@
import {
Accordion,
AccordionButton,
AccordionIcon,
AccordionItem,
AccordionPanel,
Box,
Link,
} from "@chakra-ui/core";
Accordion,
AccordionButton,
AccordionIcon,
AccordionItem,
AccordionPanel,
Box,
Link
} from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import React, { useContext } from "react";
import { Helmet } from "react-helmet-async";

View File

@ -1,17 +1,17 @@
import { useMutation } from "@apollo/client";
import {
Box,
Button,
Flex,
FormControl,
FormErrorMessage,
FormHelperText,
FormLabel,
Radio,
RadioGroup,
Stack,
useToast,
} from "@chakra-ui/core";
Box,
Button,
Flex,
FormControl,
FormErrorMessage,
FormHelperText,
FormLabel,
Radio,
RadioGroup,
Stack,
useToast
} from "@chakra-ui/react";
import React, { useContext, useState } from "react";
import { ADD_SUGGESTION } from "../../graphql/mutations/addSuggestion";
import { ADD_VOUCH } from "../../graphql/mutations/addVouch";

View File

@ -1,12 +1,12 @@
import { useQuery } from "@apollo/client";
import { Badge, Box, Button, Divider, Flex, Grid } from "@chakra-ui/core";
import { Badge, Box, Button, Divider, Flex, Grid } from "@chakra-ui/react";
import { Link } from "@reach/router";
import React, { useContext, useState } from "react";
import { PlusInfoData, PLUS_INFO } from "../../graphql/queries/plusInfo";
import {
Suggestion,
SUGGESTIONS,
SuggestionsData,
Suggestion,
SUGGESTIONS,
SuggestionsData
} from "../../graphql/queries/suggestions";
import { USER } from "../../graphql/queries/user";
import { VOUCHES } from "../../graphql/queries/vouches";

View File

@ -1,21 +1,25 @@
import {
Box,
Flex, Grid, Heading,
IconButton, Popover,
PopoverArrow,
PopoverBody, PopoverContent, PopoverTrigger
} from "@chakra-ui/react";
import { Link } from "@reach/router";
import React, { useContext } from "react";
import { FaBolt } from "react-icons/fa";
import MyThemeContext from "../../themeContext";
import UserAvatar from "../common/UserAvatar";
import { Summary } from "./VotingHistoryPage";
import {
Heading,
Box,
Grid,
Flex,
Popover,
PopoverTrigger,
IconButton,
PopoverContent,
PopoverArrow,
PopoverBody,
} from "@chakra-ui/core";
import { Link } from "@reach/router";
import MyThemeContext from "../../themeContext";
import { FaBolt } from "react-icons/fa";
const getColor = (score: number) =>
score < 50 ? { color: "red" } : { color: "green" };

View File

@ -1,5 +1,5 @@
import { useQuery } from "@apollo/client";
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import React, { useEffect, useState } from "react";
import { Helmet } from "react-helmet-async";

View File

@ -1,14 +1,14 @@
import { useMutation, useQuery } from "@apollo/client";
import { Box, Button, Flex, Progress, useToast } from "@chakra-ui/core";
import { Box, Button, Flex, Progress, useToast } from "@chakra-ui/react";
import { Redirect, RouteComponentProps } from "@reach/router";
import React, { useContext, useEffect, useState } from "react";
import { AddVotesVars, ADD_VOTES } from "../../graphql/mutations/addVotes";
import { PlusInfoData, PLUS_INFO } from "../../graphql/queries/plusInfo";
import { USER } from "../../graphql/queries/user";
import {
UsersForVotingData,
USERS_FOR_VOTING,
VotingSuggested,
UsersForVotingData,
USERS_FOR_VOTING,
VotingSuggested
} from "../../graphql/queries/usersForVoting";
import MyThemeContext from "../../themeContext";
import { UserData } from "../../types";

View File

@ -1,5 +1,5 @@
import { useQuery } from "@apollo/client";
import { Avatar, Box, Button, Flex, Grid } from "@chakra-ui/core";
import { Avatar, Box, Button, Flex, Grid } from "@chakra-ui/react";
import { Link, RouteComponentProps } from "@reach/router";
import React, { useContext, useEffect, useState } from "react";
import { Helmet } from "react-helmet-async";
@ -8,17 +8,17 @@ import { FaExternalLinkAlt, FaLongArrowAltLeft } from "react-icons/fa";
import { modeIconMap } from "../../assets/icons";
import { mapIcons } from "../../assets/imageImports";
import {
SearchForDraftCupData,
SearchForDraftCupVars,
SEARCH_FOR_DRAFT_CUP,
SearchForDraftCupData,
SearchForDraftCupVars,
SEARCH_FOR_DRAFT_CUP
} from "../../graphql/queries/searchForDraftCup";
import MyThemeContext from "../../themeContext";
import {
Ability,
ClothingGear,
DetailedTeamInfo,
HeadGear,
ShoesGear,
Ability,
ClothingGear,
DetailedTeamInfo,
HeadGear,
ShoesGear
} from "../../types";
import AbilityIcon from "../builds/AbilityIcon";
import GearImage from "../builds/GearImage";

View File

@ -1,12 +1,12 @@
import { useQuery } from "@apollo/client";
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import { RouteComponentProps } from "@reach/router";
import React, { useContext } from "react";
import { Helmet } from "react-helmet-async";
import { useTranslation } from "react-i18next";
import {
PlusDraftCupsData,
PLUS_DRAFT_CUPS,
PlusDraftCupsData,
PLUS_DRAFT_CUPS
} from "../../graphql/queries/plusDraftCups";
import MyThemeContext from "../../themeContext";
import Error from "../common/Error";

Some files were not shown because too many files have changed in this diff Show More