fix: downgrade redux toolkit to 1.7.2, fix deprecated properties (#22)

This commit is contained in:
AlphaNecron 2022-03-03 12:23:17 +07:00
parent 5b60f6d3ac
commit f1901f78d4
6 changed files with 11 additions and 11 deletions

View File

@ -23,7 +23,7 @@
"@emotion/styled": "^11.8.1",
"@iarna/toml": "^2.2.5",
"@prisma/client": "3.10.0",
"@reduxjs/toolkit": "^1.8.0",
"@reduxjs/toolkit": "1.7.2",
"argon2": "^0.28.5",
"cookie": "^0.4.2",
"copy-to-clipboard": "^3.3.1",

View File

@ -54,7 +54,7 @@ export default function Layout({ children, id, user }) {
return (
<>
{busy ? (
<Skeleton r={4} l={4} t={4} b={4} height='96%' width='98%' m={4} pos='fixed'/>
<Skeleton mr={4} ml={4} mt={4} mb={4} height='96%' width='98%' m={4} pos='fixed'/>
) : (
<>
<Box h='48px' bg={useColorModeValue('gray.100', 'gray.900')} sx={{ zIndex: 100, position: 'sticky' }} top={0} right={0} left={0} p={1} boxShadow='base'>

View File

@ -57,11 +57,11 @@ export default function Upload() {
px={2}
boxShadow='xl'
bg={useColorModeValue('gray.100', 'gray.700')}
fg={useColorModeValue('gray.800', 'white')}
color={useColorModeValue('gray.800', 'white')}
p={2}
borderRadius={4}
shadow={useColorModeValue('outline', 'dark-lg')}>
<Heading fontSize='lg' m={1} align='left'>Upload a file</Heading>
<Heading fontSize='lg' m={1} textAlign='left'>Upload a file</Heading>
<Button m={2} variant='ghost' width='385' height='200'>
<Dropzone disabled={busy} onDrop={acceptedFiles => setFile(acceptedFiles[0])}>
{({ getRootProps, getInputProps, isDragActive }) => (

View File

@ -40,7 +40,7 @@ function Url({ id }) {
pb={2}
boxShadow='xl'
bg={useColorModeValue('gray.100', 'gray.700')}
fg={useColorModeValue('gray.800', 'white')}
color={useColorModeValue('gray.800', 'white')}
borderRadius={5}
textAlign='center'
shadow={useColorModeValue('outline', 'dark-lg')}>
@ -96,7 +96,7 @@ function Preview({ file, embed, username, content = undefined, misc }) {
m={4}
boxShadow='xl'
bg={useColorModeValue('gray.100', 'gray.700')}
fg={useColorModeValue('gray.800', 'white')}
color={useColorModeValue('gray.800', 'white')}
p={1}
borderRadius={5}
textAlign='center'

View File

@ -62,7 +62,7 @@ export default function Login() {
{props => (
<Form>
<VStack>
<Heading fontSize='xl' mb={2} align='center'>Void</Heading>
<Heading fontSize='xl' mb={2} textAlign='center'>Void</Heading>
<Field name='username'>
{({ field, form }) => (
<FormControl isInvalid={form.errors.username && form.touched.username} isRequired mb={4}>

View File

@ -1152,10 +1152,10 @@
prop-types "^15.7.2"
tslib "^2.1.0"
"@reduxjs/toolkit@^1.8.0":
version "1.8.0"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.8.0.tgz#8ae875e481ed97e4a691aafa034f876bfd0413c4"
integrity sha512-cdfHWfcvLyhBUDicoFwG1u32JqvwKDxLxDd7zSmSoFw/RhYLOygIRtmaMjPRUUHmVmmAGAvquLLsKKU/677kSQ==
"@reduxjs/toolkit@1.7.2":
version "1.7.2"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.7.2.tgz#b428aaef92582379464f9de698dbb71957eafb02"
integrity sha512-wwr3//Ar8ZhM9bS58O+HCIaMlR4Y6SNHfuszz9hKnQuFIKvwaL3Kmjo6fpDKUOjo4Lv54Yi299ed8rofCJ/Vjw==
dependencies:
immer "^9.0.7"
redux "^4.1.2"