Skip to content

Chakra UI Updated from v1.0.0 to v2.10.7 to support after react18^ #4944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@reduxjs/toolkit": "^1.6.0-rc.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import * as React from 'react'
import {
Box,
Button,
Center,
Divider,
Input,
InputGroup,
InputRightElement,
VStack,
Button,
Divider,
Center,
Box,
useToast,
VStack,
} from '@chakra-ui/react'
import { useNavigate } from 'react-router-dom'
import * as React from 'react'
import { useDispatch } from 'react-redux'
import { useNavigate } from 'react-router-dom'

import { ProtectedComponent } from './ProtectedComponent'
import { useLoginMutation } from '../../app/services/auth'
import type { LoginRequest } from '../../app/services/auth'
import { useLoginMutation } from '../../app/services/auth'
import { ProtectedComponent } from './ProtectedComponent'

function PasswordInput({
name,
Expand Down Expand Up @@ -79,7 +79,7 @@ export const Login = () => {
<PasswordInput onChange={handleChange} name="password" />
</InputGroup>
<Button
isFullWidth
width="100%"
onClick={async () => {
try {
await login(formState).unwrap()
Expand Down
2 changes: 1 addition & 1 deletion examples/query/react/authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@reduxjs/toolkit": "^1.6.0-rc.1",
Expand Down
20 changes: 10 additions & 10 deletions examples/query/react/authentication/src/features/auth/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import * as React from 'react'
import {
Box,
Button,
Center,
Divider,
Input,
InputGroup,
InputRightElement,
VStack,
Button,
Divider,
Center,
Box,
useToast,
VStack,
} from '@chakra-ui/react'
import { useNavigate } from 'react-router-dom'
import * as React from 'react'
import { useDispatch } from 'react-redux'
import { useNavigate } from 'react-router-dom'
import { setCredentials } from './authSlice'

import { ProtectedComponent } from './ProtectedComponent'
import { useLoginMutation } from '../../app/services/auth'
import type { LoginRequest } from '../../app/services/auth'
import { useLoginMutation } from '../../app/services/auth'
import { ProtectedComponent } from './ProtectedComponent'

function PasswordInput({
name,
Expand Down Expand Up @@ -80,7 +80,7 @@ export const Login = () => {
<PasswordInput onChange={handleChange} name="password" />
</InputGroup>
<Button
isFullWidth
width={'100%'}
onClick={async () => {
try {
const user = await login(formState).unwrap()
Expand Down
2 changes: 1 addition & 1 deletion examples/query/react/graphql-codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@mswjs/data": "^0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/query/react/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@mswjs/data": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/query/react/mutations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@mswjs/data": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/query/react/optimistic-update/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@mswjs/data": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/query/react/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@mswjs/data": "^0.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@mswjs/data": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/query/react/prefetching-automatic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@mswjs/data": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/query/react/prefetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"main": "./src/index.tsx",
"dependencies": {
"@chakra-ui/react": "1.0.0",
"@chakra-ui/react": "2.10.7",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@mswjs/data": "^0.3.0",
Expand Down
Loading