Skip to content

Commit

Permalink
chore: removed commented imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tyboro2002 committed Mar 27, 2024
1 parent 7ed4f6d commit ddf2bf8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/src/composables/services/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import axios, { AxiosError, AxiosResponse } from 'axios';
// import { useI18n } from 'vue-i18n';
import {Ref} from 'vue';
import {ComposerTranslation} from "vue-i18n";
const lifeTime = 3000;

// const { t } = useI18n();

export async function get<T>(endpoint: string, ref: Ref<T|null>, fromJson: (data: any) => T, toast:any, t: ComposerTranslation): Promise<void> {
await axios.get(endpoint).then((response: AxiosResponse) => {
ref.value = fromJson(response.data);
Expand Down

0 comments on commit ddf2bf8

Please sign in to comment.