mirror of
https://github.com/diced/zipline.git
synced 2026-06-12 19:01:18 -07:00
fix: breaking changes in migrating mantine v6
This commit is contained in:
@@ -3,7 +3,7 @@ import { ArrowDownRight, ArrowUpRight } from 'react-feather';
|
|||||||
|
|
||||||
const useStyles = createStyles((theme) => ({
|
const useStyles = createStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
padding: theme.spacing.xl * 1.5,
|
padding: `calc(${theme.spacing.xl} * 1.5)`,
|
||||||
},
|
},
|
||||||
|
|
||||||
value: {
|
value: {
|
||||||
|
|||||||
@@ -112,8 +112,10 @@ export default function ZiplineTheming({ Component, pageProps, ...props }) {
|
|||||||
},
|
},
|
||||||
LoadingOverlay: {
|
LoadingOverlay: {
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
overlayBlur: 3,
|
overlayProps: {
|
||||||
overlayColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : 'white',
|
blur: 3,
|
||||||
|
color: theme.colorScheme === 'dark' ? theme.colors.dark[6] : 'white',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Loader: {
|
Loader: {
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export default function FilePagation({ disableMediaPreview, exifEnabled, queryPa
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{!isMobile && <div></div>}
|
{!isMobile && <div></div>}
|
||||||
<Pagination total={numPages} page={page} onChange={setPage} withEdges />
|
<Pagination total={numPages} value={page} onChange={setPage} withEdges />
|
||||||
{!isMobile && (
|
{!isMobile && (
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label='Show non-media files'
|
label='Show non-media files'
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default function Files({ disableMediaPreview, exifEnabled, queryPage }) {
|
|||||||
paddingBottom: 3,
|
paddingBottom: 3,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Pagination total={favoriteNumPages} page={favoritePage} onChange={setFavoritePage} />
|
<Pagination total={favoriteNumPages} value={favoritePage} onChange={setFavoritePage} />
|
||||||
</Box>
|
</Box>
|
||||||
</Accordion.Panel>
|
</Accordion.Panel>
|
||||||
</Accordion.Item>
|
</Accordion.Item>
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ export default function Invites() {
|
|||||||
modals.openConfirmModal({
|
modals.openConfirmModal({
|
||||||
title: `Delete ${invite.code}?`,
|
title: `Delete ${invite.code}?`,
|
||||||
centered: true,
|
centered: true,
|
||||||
overlayBlur: 3,
|
overlayProps: { blur: 3 },
|
||||||
labels: { confirm: 'Yes', cancel: 'No' },
|
labels: { confirm: 'Yes', cancel: 'No' },
|
||||||
onConfirm: async () => {
|
onConfirm: async () => {
|
||||||
const res = await useFetch(`/api/auth/invite?code=${invite.code}`, 'DELETE');
|
const res = await useFetch(`/api/auth/invite?code=${invite.code}`, 'DELETE');
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export default function Users() {
|
|||||||
title: `Delete ${user.username}'s files?`,
|
title: `Delete ${user.username}'s files?`,
|
||||||
labels: { confirm: 'Yes', cancel: 'No' },
|
labels: { confirm: 'Yes', cancel: 'No' },
|
||||||
centered: true,
|
centered: true,
|
||||||
overlayBlur: 3,
|
overlayProps: { blur: 3 },
|
||||||
onConfirm: () => {
|
onConfirm: () => {
|
||||||
handleDelete(user, true);
|
handleDelete(user, true);
|
||||||
modals.closeAll();
|
modals.closeAll();
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export default function EmbeddedFile({
|
|||||||
withCloseButton={true}
|
withCloseButton={true}
|
||||||
closeOnEscape={false}
|
closeOnEscape={false}
|
||||||
closeOnClickOutside={false}
|
closeOnClickOutside={false}
|
||||||
overlayBlur={3}
|
overlayProps={{ blur: 3 }}
|
||||||
>
|
>
|
||||||
<PasswordInput
|
<PasswordInput
|
||||||
label='Password'
|
label='Password'
|
||||||
|
|||||||
Reference in New Issue
Block a user