mirror of https://github.com/AlphaNecron/Void.git
fix: downgrade redux toolkit to 1.7.2, fix deprecated properties (#22)
This commit is contained in:
parent
5b60f6d3ac
commit
f1901f78d4
|
@ -23,7 +23,7 @@
|
||||||
"@emotion/styled": "^11.8.1",
|
"@emotion/styled": "^11.8.1",
|
||||||
"@iarna/toml": "^2.2.5",
|
"@iarna/toml": "^2.2.5",
|
||||||
"@prisma/client": "3.10.0",
|
"@prisma/client": "3.10.0",
|
||||||
"@reduxjs/toolkit": "^1.8.0",
|
"@reduxjs/toolkit": "1.7.2",
|
||||||
"argon2": "^0.28.5",
|
"argon2": "^0.28.5",
|
||||||
"cookie": "^0.4.2",
|
"cookie": "^0.4.2",
|
||||||
"copy-to-clipboard": "^3.3.1",
|
"copy-to-clipboard": "^3.3.1",
|
||||||
|
|
|
@ -54,7 +54,7 @@ export default function Layout({ children, id, user }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{busy ? (
|
{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'>
|
<Box h='48px' bg={useColorModeValue('gray.100', 'gray.900')} sx={{ zIndex: 100, position: 'sticky' }} top={0} right={0} left={0} p={1} boxShadow='base'>
|
||||||
|
|
|
@ -57,11 +57,11 @@ export default function Upload() {
|
||||||
px={2}
|
px={2}
|
||||||
boxShadow='xl'
|
boxShadow='xl'
|
||||||
bg={useColorModeValue('gray.100', 'gray.700')}
|
bg={useColorModeValue('gray.100', 'gray.700')}
|
||||||
fg={useColorModeValue('gray.800', 'white')}
|
color={useColorModeValue('gray.800', 'white')}
|
||||||
p={2}
|
p={2}
|
||||||
borderRadius={4}
|
borderRadius={4}
|
||||||
shadow={useColorModeValue('outline', 'dark-lg')}>
|
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'>
|
<Button m={2} variant='ghost' width='385' height='200'>
|
||||||
<Dropzone disabled={busy} onDrop={acceptedFiles => setFile(acceptedFiles[0])}>
|
<Dropzone disabled={busy} onDrop={acceptedFiles => setFile(acceptedFiles[0])}>
|
||||||
{({ getRootProps, getInputProps, isDragActive }) => (
|
{({ getRootProps, getInputProps, isDragActive }) => (
|
||||||
|
|
|
@ -40,7 +40,7 @@ function Url({ id }) {
|
||||||
pb={2}
|
pb={2}
|
||||||
boxShadow='xl'
|
boxShadow='xl'
|
||||||
bg={useColorModeValue('gray.100', 'gray.700')}
|
bg={useColorModeValue('gray.100', 'gray.700')}
|
||||||
fg={useColorModeValue('gray.800', 'white')}
|
color={useColorModeValue('gray.800', 'white')}
|
||||||
borderRadius={5}
|
borderRadius={5}
|
||||||
textAlign='center'
|
textAlign='center'
|
||||||
shadow={useColorModeValue('outline', 'dark-lg')}>
|
shadow={useColorModeValue('outline', 'dark-lg')}>
|
||||||
|
@ -96,7 +96,7 @@ function Preview({ file, embed, username, content = undefined, misc }) {
|
||||||
m={4}
|
m={4}
|
||||||
boxShadow='xl'
|
boxShadow='xl'
|
||||||
bg={useColorModeValue('gray.100', 'gray.700')}
|
bg={useColorModeValue('gray.100', 'gray.700')}
|
||||||
fg={useColorModeValue('gray.800', 'white')}
|
color={useColorModeValue('gray.800', 'white')}
|
||||||
p={1}
|
p={1}
|
||||||
borderRadius={5}
|
borderRadius={5}
|
||||||
textAlign='center'
|
textAlign='center'
|
||||||
|
|
|
@ -62,7 +62,7 @@ export default function Login() {
|
||||||
{props => (
|
{props => (
|
||||||
<Form>
|
<Form>
|
||||||
<VStack>
|
<VStack>
|
||||||
<Heading fontSize='xl' mb={2} align='center'>Void</Heading>
|
<Heading fontSize='xl' mb={2} textAlign='center'>Void</Heading>
|
||||||
<Field name='username'>
|
<Field name='username'>
|
||||||
{({ field, form }) => (
|
{({ field, form }) => (
|
||||||
<FormControl isInvalid={form.errors.username && form.touched.username} isRequired mb={4}>
|
<FormControl isInvalid={form.errors.username && form.touched.username} isRequired mb={4}>
|
||||||
|
|
|
@ -1152,10 +1152,10 @@
|
||||||
prop-types "^15.7.2"
|
prop-types "^15.7.2"
|
||||||
tslib "^2.1.0"
|
tslib "^2.1.0"
|
||||||
|
|
||||||
"@reduxjs/toolkit@^1.8.0":
|
"@reduxjs/toolkit@1.7.2":
|
||||||
version "1.8.0"
|
version "1.7.2"
|
||||||
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.8.0.tgz#8ae875e481ed97e4a691aafa034f876bfd0413c4"
|
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.7.2.tgz#b428aaef92582379464f9de698dbb71957eafb02"
|
||||||
integrity sha512-cdfHWfcvLyhBUDicoFwG1u32JqvwKDxLxDd7zSmSoFw/RhYLOygIRtmaMjPRUUHmVmmAGAvquLLsKKU/677kSQ==
|
integrity sha512-wwr3//Ar8ZhM9bS58O+HCIaMlR4Y6SNHfuszz9hKnQuFIKvwaL3Kmjo6fpDKUOjo4Lv54Yi299ed8rofCJ/Vjw==
|
||||||
dependencies:
|
dependencies:
|
||||||
immer "^9.0.7"
|
immer "^9.0.7"
|
||||||
redux "^4.1.2"
|
redux "^4.1.2"
|
||||||
|
|
Loading…
Reference in New Issue