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",
|
"prefix": "componentfile",
|
||||||
"body": [
|
"body": [
|
||||||
"import React from \"react\";",
|
"import React from \"react\";",
|
||||||
"import { Box } from \"@chakra-ui/core\";",
|
"import { Box } from \"@chakra-ui/react\";",
|
||||||
"",
|
"",
|
||||||
"function $TM_FILENAME_BASE() {",
|
"function $TM_FILENAME_BASE() {",
|
||||||
" return <Box>$1</Box>;",
|
" return <Box>$1</Box>;",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { ApolloProvider } from "@apollo/client";
|
import { ApolloProvider } from "@apollo/client";
|
||||||
import { Auth0Provider } from "@auth0/auth0-react";
|
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 defaultTheme from "@chakra-ui/theme";
|
||||||
import {
|
import {
|
||||||
BrowserRouter as Router,
|
BrowserRouter as Router,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import {
|
||||||
Link as ChakraLink,
|
Link as ChakraLink,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
useColorMode,
|
useColorMode,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { EmailIcon, MoonIcon, SunIcon } from "@chakra-ui/icons";
|
import { EmailIcon, MoonIcon, SunIcon } from "@chakra-ui/icons";
|
||||||
import { SiGithub } from "react-icons/si";
|
import { SiGithub } from "react-icons/si";
|
||||||
import { Link as RouterLink, useRouteMatch } from "react-router-dom";
|
import { Link as RouterLink, useRouteMatch } from "react-router-dom";
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {
|
||||||
MenuButton,
|
MenuButton,
|
||||||
MenuList,
|
MenuList,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { HamburgerIcon } from "@chakra-ui/icons";
|
import { HamburgerIcon } from "@chakra-ui/icons";
|
||||||
import { Link, useLocation } from "react-router-dom";
|
import { Link, useLocation } from "react-router-dom";
|
||||||
import { useAuth0 } from "@auth0/auth0-react";
|
import { useAuth0 } from "@auth0/auth0-react";
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
useTheme,
|
useTheme,
|
||||||
useToast,
|
useToast,
|
||||||
VStack,
|
VStack,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { useHistory, useLocation } from "react-router-dom";
|
import { useHistory, useLocation } from "react-router-dom";
|
||||||
import { useLazyQuery } from "@apollo/client";
|
import { useLazyQuery } from "@apollo/client";
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
useTheme,
|
useTheme,
|
||||||
useToast,
|
useToast,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import {
|
import {
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
ChevronRightIcon,
|
ChevronRightIcon,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import {
|
||||||
DrawerCloseButton,
|
DrawerCloseButton,
|
||||||
DrawerOverlay,
|
DrawerOverlay,
|
||||||
useBreakpointValue,
|
useBreakpointValue,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
|
|
||||||
import { ItemPageContent } from "./ItemPage";
|
import { ItemPageContent } from "./ItemPage";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
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 { ExternalLinkIcon, ChevronRightIcon } from "@chakra-ui/icons";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { css } from "emotion";
|
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 gql from "graphql-tag";
|
||||||
import { useQuery } from "@apollo/client";
|
import { useQuery } from "@apollo/client";
|
||||||
import { Link, useHistory, useParams } from "react-router-dom";
|
import { Link, useHistory, useParams } from "react-router-dom";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
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 gql from "graphql-tag";
|
||||||
import { useQuery } from "@apollo/client";
|
import { useQuery } from "@apollo/client";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Box } from "@chakra-ui/core";
|
import { Box } from "@chakra-ui/react";
|
||||||
import loadable from "@loadable/component";
|
import loadable from "@loadable/component";
|
||||||
|
|
||||||
const GlobalHeader = loadable(() => import("./GlobalHeader"));
|
const GlobalHeader = loadable(() => import("./GlobalHeader"));
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { css } from "emotion";
|
import { css } from "emotion";
|
||||||
import { VStack } from "@chakra-ui/core";
|
import { VStack } from "@chakra-ui/react";
|
||||||
|
|
||||||
import { Heading1, Heading2, Heading3 } from "./util";
|
import { Heading1, Heading2, Heading3 } from "./util";
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import {
|
||||||
VStack,
|
VStack,
|
||||||
useBreakpointValue,
|
useBreakpointValue,
|
||||||
useToast,
|
useToast,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import {
|
import {
|
||||||
ArrowForwardIcon,
|
ArrowForwardIcon,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {
|
||||||
Tooltip,
|
Tooltip,
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
useTheme,
|
useTheme,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { EditIcon, DeleteIcon, InfoIcon } from "@chakra-ui/icons";
|
import { EditIcon, DeleteIcon, InfoIcon } from "@chakra-ui/icons";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import loadable from "@loadable/component";
|
import loadable from "@loadable/component";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Box, Flex } from "@chakra-ui/core";
|
import { Box, Flex } from "@chakra-ui/react";
|
||||||
|
|
||||||
import ItemsPanel from "./ItemsPanel";
|
import ItemsPanel from "./ItemsPanel";
|
||||||
import SearchToolbar from "./SearchToolbar";
|
import SearchToolbar from "./SearchToolbar";
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {
|
||||||
Skeleton,
|
Skeleton,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
VisuallyHidden,
|
VisuallyHidden,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { EditIcon, QuestionIcon } from "@chakra-ui/icons";
|
import { EditIcon, QuestionIcon } from "@chakra-ui/icons";
|
||||||
import { CSSTransition, TransitionGroup } from "react-transition-group";
|
import { CSSTransition, TransitionGroup } from "react-transition-group";
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
Tooltip,
|
Tooltip,
|
||||||
useClipboard,
|
useClipboard,
|
||||||
useToast,
|
useToast,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import {
|
import {
|
||||||
ArrowBackIcon,
|
ArrowBackIcon,
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
VisuallyHidden,
|
VisuallyHidden,
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
useTheme,
|
useTheme,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import loadable from "@loadable/component";
|
import loadable from "@loadable/component";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import gql from "graphql-tag";
|
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 { useQuery } from "@apollo/client";
|
||||||
|
|
||||||
import { Delay, useDebounce } from "../util";
|
import { Delay, useDebounce } from "../util";
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {
|
||||||
InputLeftElement,
|
InputLeftElement,
|
||||||
InputRightElement,
|
InputRightElement,
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { CloseIcon, SearchIcon } from "@chakra-ui/icons";
|
import { CloseIcon, SearchIcon } from "@chakra-ui/icons";
|
||||||
import { css, cx } from "emotion";
|
import { css, cx } from "emotion";
|
||||||
import Autosuggest from "react-autosuggest";
|
import Autosuggest from "react-autosuggest";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Box, Grid } from "@chakra-ui/core";
|
import { Box, Grid } from "@chakra-ui/react";
|
||||||
|
|
||||||
function WardrobePageLayout({ preview, controls, itemsAndSearch }) {
|
function WardrobePageLayout({ preview, controls, itemsAndSearch }) {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useToast } from "@chakra-ui/core";
|
import { useToast } from "@chakra-ui/react";
|
||||||
import loadable from "@loadable/component";
|
import loadable from "@loadable/component";
|
||||||
|
|
||||||
import ItemsAndSearchPanels from "./ItemsAndSearchPanels";
|
import ItemsAndSearchPanels from "./ItemsAndSearchPanels";
|
||||||
|
|
|
@ -21,7 +21,7 @@ import {
|
||||||
Spinner,
|
Spinner,
|
||||||
useDisclosure,
|
useDisclosure,
|
||||||
useToast,
|
useToast,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { ChevronRightIcon, ExternalLinkIcon } from "@chakra-ui/icons";
|
import { ChevronRightIcon, ExternalLinkIcon } from "@chakra-ui/icons";
|
||||||
|
|
||||||
import ItemLayerSupportUploadModal from "./ItemLayerSupportUploadModal";
|
import ItemLayerSupportUploadModal from "./ItemLayerSupportUploadModal";
|
||||||
|
|
|
@ -12,7 +12,7 @@ import {
|
||||||
ModalOverlay,
|
ModalOverlay,
|
||||||
Select,
|
Select,
|
||||||
useToast,
|
useToast,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { ExternalLinkIcon } from "@chakra-ui/icons";
|
import { ExternalLinkIcon } from "@chakra-ui/icons";
|
||||||
|
|
||||||
import { safeImageUrl } from "../../util";
|
import { safeImageUrl } from "../../util";
|
||||||
|
|
|
@ -24,7 +24,7 @@ import {
|
||||||
useBreakpointValue,
|
useBreakpointValue,
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
useDisclosure,
|
useDisclosure,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { CheckCircleIcon, EditIcon, ExternalLinkIcon } from "@chakra-ui/icons";
|
import { CheckCircleIcon, EditIcon, ExternalLinkIcon } from "@chakra-ui/icons";
|
||||||
|
|
||||||
import ItemLayerSupportModal from "./ItemLayerSupportModal";
|
import ItemLayerSupportModal from "./ItemLayerSupportModal";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from "react";
|
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
|
* Metadata is a UI component for showing metadata about something, as labels
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import gql from "graphql-tag";
|
import gql from "graphql-tag";
|
||||||
import { useMutation, useQuery } from "@apollo/client";
|
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 {
|
import {
|
||||||
ArrowBackIcon,
|
ArrowBackIcon,
|
||||||
ArrowForwardIcon,
|
ArrowForwardIcon,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { css } from "emotion";
|
import { css } from "emotion";
|
||||||
import { Box, useColorModeValue } from "@chakra-ui/core";
|
import { Box, useColorModeValue } from "@chakra-ui/react";
|
||||||
import { createIcon } from "@chakra-ui/icons";
|
import { createIcon } from "@chakra-ui/icons";
|
||||||
|
|
||||||
const HangerIcon = createIcon({
|
const HangerIcon = createIcon({
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {
|
||||||
Wrap,
|
Wrap,
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
useTheme,
|
useTheme,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/react";
|
||||||
import { CheckIcon, NotAllowedIcon, StarIcon } from "@chakra-ui/icons";
|
import { CheckIcon, NotAllowedIcon, StarIcon } from "@chakra-ui/icons";
|
||||||
import { HiSparkles } from "react-icons/hi";
|
import { HiSparkles } from "react-icons/hi";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
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 { WarningIcon } from "@chakra-ui/icons";
|
||||||
import { css } from "emotion";
|
import { css } from "emotion";
|
||||||
import { CSSTransition, TransitionGroup } from "react-transition-group";
|
import { CSSTransition, TransitionGroup } from "react-transition-group";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import gql from "graphql-tag";
|
import gql from "graphql-tag";
|
||||||
import { useQuery } from "@apollo/client";
|
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";
|
import { Delay, useFetch } from "../util";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
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 WIPXweeImg from "../../images/wip-xwee.png";
|
||||||
import WIPXweeImg2x from "../../images/wip-xwee@2x.png";
|
import WIPXweeImg2x from "../../images/wip-xwee@2x.png";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
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.
|
* Delay hides its content and first, then shows it after the given delay.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Box } from "@chakra-ui/core";
|
import { Box } from "@chakra-ui/react";
|
||||||
|
|
||||||
import { OutfitLayers } from "../app/components/OutfitPreview";
|
import { OutfitLayers } from "../app/components/OutfitPreview";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue