Skip to content

Commit 7689ac6

Browse files
Chakra UI Updated from v1.0.0 to v2.10.7 to support after react18^ in examples
1 parent 9a8d429 commit 7689ac6

File tree

13 files changed

+195
-940
lines changed

13 files changed

+195
-940
lines changed

examples/query/react/authentication-with-extrareducers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"keywords": [],
77
"main": "./src/index.tsx",
88
"dependencies": {
9-
"@chakra-ui/react": "1.0.0",
9+
"@chakra-ui/react": "2.10.7",
1010
"@emotion/react": "^11.4.0",
1111
"@emotion/styled": "^11.3.0",
1212
"@reduxjs/toolkit": "^1.6.0-rc.1",

examples/query/react/authentication-with-extrareducers/src/features/auth/Login.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import * as React from 'react'
21
import {
2+
Box,
3+
Button,
4+
Center,
5+
Divider,
36
Input,
47
InputGroup,
58
InputRightElement,
6-
VStack,
7-
Button,
8-
Divider,
9-
Center,
10-
Box,
119
useToast,
10+
VStack,
1211
} from '@chakra-ui/react'
13-
import { useNavigate } from 'react-router-dom'
12+
import * as React from 'react'
1413
import { useDispatch } from 'react-redux'
14+
import { useNavigate } from 'react-router-dom'
1515

16-
import { ProtectedComponent } from './ProtectedComponent'
17-
import { useLoginMutation } from '../../app/services/auth'
1816
import type { LoginRequest } from '../../app/services/auth'
17+
import { useLoginMutation } from '../../app/services/auth'
18+
import { ProtectedComponent } from './ProtectedComponent'
1919

2020
function PasswordInput({
2121
name,
@@ -79,7 +79,7 @@ export const Login = () => {
7979
<PasswordInput onChange={handleChange} name="password" />
8080
</InputGroup>
8181
<Button
82-
isFullWidth
82+
width="100%"
8383
onClick={async () => {
8484
try {
8585
await login(formState).unwrap()

examples/query/react/authentication/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"keywords": [],
77
"main": "./src/index.tsx",
88
"dependencies": {
9-
"@chakra-ui/react": "1.0.0",
9+
"@chakra-ui/react": "2.10.7",
1010
"@emotion/react": "^11.4.0",
1111
"@emotion/styled": "^11.3.0",
1212
"@reduxjs/toolkit": "^1.6.0-rc.1",

examples/query/react/authentication/src/features/auth/Login.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import * as React from 'react'
21
import {
2+
Box,
3+
Button,
4+
Center,
5+
Divider,
36
Input,
47
InputGroup,
58
InputRightElement,
6-
VStack,
7-
Button,
8-
Divider,
9-
Center,
10-
Box,
119
useToast,
10+
VStack,
1211
} from '@chakra-ui/react'
13-
import { useNavigate } from 'react-router-dom'
12+
import * as React from 'react'
1413
import { useDispatch } from 'react-redux'
14+
import { useNavigate } from 'react-router-dom'
1515
import { setCredentials } from './authSlice'
1616

17-
import { ProtectedComponent } from './ProtectedComponent'
18-
import { useLoginMutation } from '../../app/services/auth'
1917
import type { LoginRequest } from '../../app/services/auth'
18+
import { useLoginMutation } from '../../app/services/auth'
19+
import { ProtectedComponent } from './ProtectedComponent'
2020

2121
function PasswordInput({
2222
name,
@@ -80,7 +80,7 @@ export const Login = () => {
8080
<PasswordInput onChange={handleChange} name="password" />
8181
</InputGroup>
8282
<Button
83-
isFullWidth
83+
width={'100%'}
8484
onClick={async () => {
8585
try {
8686
const user = await login(formState).unwrap()

examples/query/react/graphql-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"keywords": [],
66
"main": "./src/index.tsx",
77
"dependencies": {
8-
"@chakra-ui/react": "1.0.0",
8+
"@chakra-ui/react": "2.10.7",
99
"@emotion/react": "^11.4.0",
1010
"@emotion/styled": "^11.3.0",
1111
"@mswjs/data": "^0.4.0",

examples/query/react/graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"keywords": [],
77
"main": "./src/index.tsx",
88
"dependencies": {
9-
"@chakra-ui/react": "1.0.0",
9+
"@chakra-ui/react": "2.10.7",
1010
"@emotion/react": "^11.4.0",
1111
"@emotion/styled": "^11.3.0",
1212
"@mswjs/data": "^0.3.0",

examples/query/react/mutations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"keywords": [],
77
"main": "./src/index.tsx",
88
"dependencies": {
9-
"@chakra-ui/react": "1.0.0",
9+
"@chakra-ui/react": "2.10.7",
1010
"@emotion/react": "^11.4.0",
1111
"@emotion/styled": "^11.3.0",
1212
"@mswjs/data": "^0.3.0",

examples/query/react/optimistic-update/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"keywords": [],
77
"main": "./src/index.tsx",
88
"dependencies": {
9-
"@chakra-ui/react": "1.0.0",
9+
"@chakra-ui/react": "2.10.7",
1010
"@emotion/react": "^11.4.0",
1111
"@emotion/styled": "^11.3.0",
1212
"@mswjs/data": "^0.3.0",

examples/query/react/pagination/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"keywords": [],
77
"main": "./src/index.tsx",
88
"dependencies": {
9-
"@chakra-ui/react": "1.0.0",
9+
"@chakra-ui/react": "2.10.7",
1010
"@emotion/react": "^11.4.0",
1111
"@emotion/styled": "^11.3.0",
1212
"@mswjs/data": "^0.3.0",

examples/query/react/prefetching-automatic-waterfall/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"keywords": [],
77
"main": "./src/index.tsx",
88
"dependencies": {
9-
"@chakra-ui/react": "1.0.0",
9+
"@chakra-ui/react": "2.10.7",
1010
"@emotion/react": "^11.4.0",
1111
"@emotion/styled": "^11.3.0",
1212
"@mswjs/data": "^0.3.0",

0 commit comments

Comments
 (0)