mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-07 19:19:59 +02:00
fix all imports for new structure
This commit is contained in:
@@ -4,11 +4,15 @@ import { useForm } from '@mantine/form';
|
||||
import { closeModal, ContextModalProps } from '@mantine/modals';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { useShareItem } from '../mutations/share-item-mutation';
|
||||
|
||||
import { Button, Switch, toast } from '/@/renderer/components';
|
||||
import { useShareItem } from '/@/renderer/features/sharing/mutations/share-item-mutation';
|
||||
import { useCurrentServer } from '/@/renderer/store';
|
||||
|
||||
// Bugged prop types in mantine v6
|
||||
const WrappedDateTimePicker = ({ ...props }: any) => {
|
||||
return <DateTimePicker {...props} />;
|
||||
};
|
||||
|
||||
export const ShareItemContextModal = ({
|
||||
id,
|
||||
innerProps,
|
||||
@@ -110,7 +114,7 @@ export const ShareItemContextModal = ({
|
||||
})}
|
||||
{...form.getInputProps('allowDownloading')}
|
||||
/>
|
||||
<DateTimePicker
|
||||
<WrappedDateTimePicker
|
||||
clearable
|
||||
label={t('form.shareItem.setExpiration', {
|
||||
postProcess: 'titleCase',
|
||||
|
||||
Reference in New Issue
Block a user