update chakra imports

This commit is contained in:
Emi Matchu 2020-12-25 09:08:33 -08:00
parent 69b60944c2
commit 406849182a
34 changed files with 34 additions and 34 deletions

View file

@ -20,7 +20,7 @@
"prefix": "componentfile",
"body": [
"import React from \"react\";",
"import { Box } from \"@chakra-ui/core\";",
"import { Box } from \"@chakra-ui/react\";",
"",
"function $TM_FILENAME_BASE() {",
" return <Box>$1</Box>;",

View file

@ -1,7 +1,7 @@
import React from "react";
import { ApolloProvider } from "@apollo/client";
import { Auth0Provider } from "@auth0/auth0-react";
import { CSSReset, ChakraProvider } from "@chakra-ui/core";
import { CSSReset, ChakraProvider } from "@chakra-ui/react";
import defaultTheme from "@chakra-ui/theme";
import {
BrowserRouter as Router,

View file

@ -6,7 +6,7 @@ import {
Link as ChakraLink,
Tooltip,
useColorMode,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { EmailIcon, MoonIcon, SunIcon } from "@chakra-ui/icons";
import { SiGithub } from "react-icons/si";
import { Link as RouterLink, useRouteMatch } from "react-router-dom";

View file

@ -8,7 +8,7 @@ import {
MenuButton,
MenuList,
MenuItem,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { HamburgerIcon } from "@chakra-ui/icons";
import { Link, useLocation } from "react-router-dom";
import { useAuth0 } from "@auth0/auth0-react";

View file

@ -11,7 +11,7 @@ import {
useTheme,
useToast,
VStack,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { useHistory, useLocation } from "react-router-dom";
import { useLazyQuery } from "@apollo/client";

View file

@ -14,7 +14,7 @@ import {
useColorModeValue,
useTheme,
useToast,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import {
CheckIcon,
ChevronRightIcon,

View file

@ -6,7 +6,7 @@ import {
DrawerCloseButton,
DrawerOverlay,
useBreakpointValue,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { ItemPageContent } from "./ItemPage";

View file

@ -1,5 +1,5 @@
import React from "react";
import { Badge, Box, Skeleton, Tooltip } from "@chakra-ui/core";
import { Badge, Box, Skeleton, Tooltip } from "@chakra-ui/react";
import { ExternalLinkIcon, ChevronRightIcon } from "@chakra-ui/icons";
import {

View file

@ -1,6 +1,6 @@
import React from "react";
import { css } from "emotion";
import { Box, Skeleton, useColorModeValue, useToken } from "@chakra-ui/core";
import { Box, Skeleton, useColorModeValue, useToken } from "@chakra-ui/react";
import gql from "graphql-tag";
import { useQuery } from "@apollo/client";
import { Link, useHistory, useParams } from "react-router-dom";

View file

@ -1,5 +1,5 @@
import React from "react";
import { Badge, Box, Tooltip } from "@chakra-ui/core";
import { Badge, Box, Tooltip } from "@chakra-ui/react";
import gql from "graphql-tag";
import { useQuery } from "@apollo/client";

View file

@ -1,5 +1,5 @@
import React from "react";
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import loadable from "@loadable/component";
const GlobalHeader = loadable(() => import("./GlobalHeader"));

View file

@ -1,6 +1,6 @@
import React from "react";
import { css } from "emotion";
import { VStack } from "@chakra-ui/core";
import { VStack } from "@chakra-ui/react";
import { Heading1, Heading2, Heading3 } from "./util";

View file

@ -19,7 +19,7 @@ import {
VStack,
useBreakpointValue,
useToast,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import {
ArrowForwardIcon,
CheckIcon,

View file

@ -8,7 +8,7 @@ import {
Tooltip,
useColorModeValue,
useTheme,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { EditIcon, DeleteIcon, InfoIcon } from "@chakra-ui/icons";
import { Link } from "react-router-dom";
import loadable from "@loadable/component";

View file

@ -1,5 +1,5 @@
import React from "react";
import { Box, Flex } from "@chakra-ui/core";
import { Box, Flex } from "@chakra-ui/react";
import ItemsPanel from "./ItemsPanel";
import SearchToolbar from "./SearchToolbar";

View file

@ -10,7 +10,7 @@ import {
Skeleton,
Tooltip,
VisuallyHidden,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { EditIcon, QuestionIcon } from "@chakra-ui/icons";
import { CSSTransition, TransitionGroup } from "react-transition-group";

View file

@ -11,7 +11,7 @@ import {
Tooltip,
useClipboard,
useToast,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import {
ArrowBackIcon,
CheckIcon,

View file

@ -14,7 +14,7 @@ import {
VisuallyHidden,
useColorModeValue,
useTheme,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import loadable from "@loadable/component";
import {

View file

@ -1,6 +1,6 @@
import React from "react";
import gql from "graphql-tag";
import { Box, Text, VisuallyHidden } from "@chakra-ui/core";
import { Box, Text, VisuallyHidden } from "@chakra-ui/react";
import { useQuery } from "@apollo/client";
import { Delay, useDebounce } from "../util";

View file

@ -10,7 +10,7 @@ import {
InputLeftElement,
InputRightElement,
useColorModeValue,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { CloseIcon, SearchIcon } from "@chakra-ui/icons";
import { css, cx } from "emotion";
import Autosuggest from "react-autosuggest";

View file

@ -1,5 +1,5 @@
import React from "react";
import { Box, Grid } from "@chakra-ui/core";
import { Box, Grid } from "@chakra-ui/react";
function WardrobePageLayout({ preview, controls, itemsAndSearch }) {
return (

View file

@ -1,5 +1,5 @@
import React from "react";
import { useToast } from "@chakra-ui/core";
import { useToast } from "@chakra-ui/react";
import loadable from "@loadable/component";
import ItemsAndSearchPanels from "./ItemsAndSearchPanels";

View file

@ -21,7 +21,7 @@ import {
Spinner,
useDisclosure,
useToast,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { ChevronRightIcon, ExternalLinkIcon } from "@chakra-ui/icons";
import ItemLayerSupportUploadModal from "./ItemLayerSupportUploadModal";

View file

@ -12,7 +12,7 @@ import {
ModalOverlay,
Select,
useToast,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { ExternalLinkIcon } from "@chakra-ui/icons";
import { safeImageUrl } from "../../util";

View file

@ -24,7 +24,7 @@ import {
useBreakpointValue,
useColorModeValue,
useDisclosure,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { CheckCircleIcon, EditIcon, ExternalLinkIcon } from "@chakra-ui/icons";
import ItemLayerSupportModal from "./ItemLayerSupportModal";

View file

@ -1,5 +1,5 @@
import * as React from "react";
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
/**
* Metadata is a UI component for showing metadata about something, as labels

View file

@ -1,7 +1,7 @@
import React from "react";
import gql from "graphql-tag";
import { useMutation, useQuery } from "@apollo/client";
import { Box, IconButton, Select, Spinner, Switch } from "@chakra-ui/core";
import { Box, IconButton, Select, Spinner, Switch } from "@chakra-ui/react";
import {
ArrowBackIcon,
ArrowForwardIcon,

View file

@ -1,6 +1,6 @@
import * as React from "react";
import { css } from "emotion";
import { Box, useColorModeValue } from "@chakra-ui/core";
import { Box, useColorModeValue } from "@chakra-ui/react";
import { createIcon } from "@chakra-ui/icons";
const HangerIcon = createIcon({

View file

@ -8,7 +8,7 @@ import {
Wrap,
useColorModeValue,
useTheme,
} from "@chakra-ui/core";
} from "@chakra-ui/react";
import { CheckIcon, NotAllowedIcon, StarIcon } from "@chakra-ui/icons";
import { HiSparkles } from "react-icons/hi";
import { Link } from "react-router-dom";

View file

@ -1,5 +1,5 @@
import React from "react";
import { Box, DarkMode, Flex, Text } from "@chakra-ui/core";
import { Box, DarkMode, Flex, Text } from "@chakra-ui/react";
import { WarningIcon } from "@chakra-ui/icons";
import { css } from "emotion";
import { CSSTransition, TransitionGroup } from "react-transition-group";

View file

@ -1,7 +1,7 @@
import React from "react";
import gql from "graphql-tag";
import { useQuery } from "@apollo/client";
import { Box, Flex, Select, Text, useColorModeValue } from "@chakra-ui/core";
import { Box, Flex, Select, Text, useColorModeValue } from "@chakra-ui/react";
import { Delay, useFetch } from "../util";

View file

@ -1,5 +1,5 @@
import React from "react";
import { Box, Flex, Tooltip } from "@chakra-ui/core";
import { Box, Flex, Tooltip } from "@chakra-ui/react";
import WIPXweeImg from "../../images/wip-xwee.png";
import WIPXweeImg2x from "../../images/wip-xwee@2x.png";

View file

@ -1,5 +1,5 @@
import React from "react";
import { Box, Heading } from "@chakra-ui/core";
import { Box, Heading } from "@chakra-ui/react";
/**
* Delay hides its content and first, then shows it after the given delay.

View file

@ -1,5 +1,5 @@
import React from "react";
import { Box } from "@chakra-ui/core";
import { Box } from "@chakra-ui/react";
import { OutfitLayers } from "../app/components/OutfitPreview";