update chakra imports
This commit is contained in:
parent
69b60944c2
commit
406849182a
34 changed files with 34 additions and 34 deletions
2
.vscode/impress-2020.code-snippets
vendored
2
.vscode/impress-2020.code-snippets
vendored
|
@ -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>;",
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
useColorModeValue,
|
||||
useTheme,
|
||||
useToast,
|
||||
} from "@chakra-ui/core";
|
||||
} from "@chakra-ui/react";
|
||||
import {
|
||||
CheckIcon,
|
||||
ChevronRightIcon,
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
DrawerCloseButton,
|
||||
DrawerOverlay,
|
||||
useBreakpointValue,
|
||||
} from "@chakra-ui/core";
|
||||
} from "@chakra-ui/react";
|
||||
|
||||
import { ItemPageContent } from "./ItemPage";
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ import {
|
|||
VStack,
|
||||
useBreakpointValue,
|
||||
useToast,
|
||||
} from "@chakra-ui/core";
|
||||
} from "@chakra-ui/react";
|
||||
import {
|
||||
ArrowForwardIcon,
|
||||
CheckIcon,
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
Tooltip,
|
||||
useClipboard,
|
||||
useToast,
|
||||
} from "@chakra-ui/core";
|
||||
} from "@chakra-ui/react";
|
||||
import {
|
||||
ArrowBackIcon,
|
||||
CheckIcon,
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
VisuallyHidden,
|
||||
useColorModeValue,
|
||||
useTheme,
|
||||
} from "@chakra-ui/core";
|
||||
} from "@chakra-ui/react";
|
||||
import loadable from "@loadable/component";
|
||||
|
||||
import {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue