🚚(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:
Anthony LC
2024-05-02 13:50:23 +02:00
committed by Anthony LC
parent d9fa75b764
commit b98cc01592
6 changed files with 12 additions and 44 deletions

View File

@@ -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',

View File

@@ -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 {

View File

@@ -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';