File tree Expand file tree Collapse file tree 13 files changed +195
-940
lines changed
prefetching-automatic-waterfall Expand file tree Collapse file tree 13 files changed +195
-940
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- import * as React from 'react'
21import {
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'
1413import { useDispatch } from 'react-redux'
14+ import { useNavigate } from 'react-router-dom'
1515
16- import { ProtectedComponent } from './ProtectedComponent'
17- import { useLoginMutation } from '../../app/services/auth'
1816import type { LoginRequest } from '../../app/services/auth'
17+ import { useLoginMutation } from '../../app/services/auth'
18+ import { ProtectedComponent } from './ProtectedComponent'
1919
2020function 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 ( )
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- import * as React from 'react'
21import {
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'
1413import { useDispatch } from 'react-redux'
14+ import { useNavigate } from 'react-router-dom'
1515import { setCredentials } from './authSlice'
1616
17- import { ProtectedComponent } from './ProtectedComponent'
18- import { useLoginMutation } from '../../app/services/auth'
1917import type { LoginRequest } from '../../app/services/auth'
18+ import { useLoginMutation } from '../../app/services/auth'
19+ import { ProtectedComponent } from './ProtectedComponent'
2020
2121function 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 ( )
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments