From d62502db434fb582e4e4ab63a18495aad53c83dc Mon Sep 17 00:00:00 2001 From: lfjnascimento Date: Wed, 10 Jul 2024 14:39:27 -0300 Subject: [PATCH] fix: lint issues --- dashboard/src/api/Tree.tsx | 8 ++++---- dashboard/src/api/api.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dashboard/src/api/Tree.tsx b/dashboard/src/api/Tree.tsx index e1ddf41..f9fa1eb 100644 --- a/dashboard/src/api/Tree.tsx +++ b/dashboard/src/api/Tree.tsx @@ -2,12 +2,12 @@ import { useQuery, UseQueryResult } from '@tanstack/react-query'; import type { Tree } from '../types/tree/Tree'; -import http from "./api" +import http from './api'; const fetchTreeCheckoutData = async (): Promise => { - const res = await http.get('/api/tree/'); - return res.data; -} + const res = await http.get('/api/tree/'); + return res.data; +}; export const useTreeTable = (): UseQueryResult => { return useQuery({ queryKey: ['treeData'], queryFn: fetchTreeCheckoutData }); diff --git a/dashboard/src/api/api.ts b/dashboard/src/api/api.ts index 3703ae0..9e19b54 100644 --- a/dashboard/src/api/api.ts +++ b/dashboard/src/api/api.ts @@ -1,6 +1,6 @@ -import axios from "axios" +import axios from 'axios'; -const API_BASE_URL = import.meta.env.VITE_API_BASE_URL +const API_BASE_URL = import.meta.env.VITE_API_BASE_URL; export default axios.create({ baseURL: API_BASE_URL,