Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lfjnascimento committed Jul 10, 2024
1 parent ee04d58 commit d62502d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dashboard/src/api/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Tree[]> => {
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 });
Expand Down
4 changes: 2 additions & 2 deletions dashboard/src/api/api.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit d62502d

Please sign in to comment.