mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 19:01:40 +00:00
fix all imports for new structure
This commit is contained in:
parent
249eaf89f8
commit
930165d006
291 changed files with 2056 additions and 1894 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import { useMutation } from '@tanstack/react-query';
|
|||
import { AxiosError } from 'axios';
|
||||
|
||||
import { api } from '/@/renderer/api';
|
||||
import { AnyLibraryItems, ShareItemArgs, ShareItemResponse } from '/@/renderer/api/types';
|
||||
import { MutationHookArgs } from '/@/renderer/lib/react-query';
|
||||
import { getServerById } from '/@/renderer/store';
|
||||
import { AnyLibraryItems, ShareItemArgs, ShareItemResponse } from '/@/shared/types/domain-types';
|
||||
|
||||
export const useShareItem = (args: MutationHookArgs) => {
|
||||
const { options } = args || {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue