🚚(app-impress) move templates api to pad-tools
Before removing the templates feature, we move the necessary api to the pad feature.
This commit is contained in:
@@ -6,7 +6,8 @@ import {
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import { APIError, APIList, errorCauses, fetchAPI } from '@/api';
|
||||
import { Template } from '@/features/templates/template';
|
||||
|
||||
import { Template } from '../types';
|
||||
|
||||
export enum TemplatesOrdering {
|
||||
BY_CREATED_ON = 'created_at',
|
||||
@@ -7,9 +7,9 @@ import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { Pad, usePadStore } from '@/features/pads/pad';
|
||||
import { Template } from '@/features/templates/template';
|
||||
|
||||
import { useCreatePdf } from '../api/useCreatePdf';
|
||||
import { Template } from '../types';
|
||||
import { downloadFile } from '../utils';
|
||||
|
||||
interface PDFButtonProps {
|
||||
|
||||
@@ -4,7 +4,8 @@ import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { Box } from '@/components';
|
||||
import { Pad } from '@/features/pads/pad';
|
||||
import { TemplatesOrdering, useTemplates } from '@/features/templates';
|
||||
|
||||
import { TemplatesOrdering, useTemplates } from '../api/useTemplates';
|
||||
|
||||
import PDFButton from './PDFButton';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user