Skip to content

Commit 6e09127

Browse files
committed
feat: remove hardcoded speaker
1 parent 9bc4ee0 commit 6e09127

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed
+4-23
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {useQuery, UseQueryResult} from "react-query";
1+
import { useQuery, UseQueryResult } from "react-query";
22
import axios from "axios";
3-
import {speakerAdapter} from "../../services/speakerAdapter";
4-
import {IResponse, ISpeaker} from "../../types/speakers";
3+
import { speakerAdapter } from "../../services/speakerAdapter";
4+
import { ISpeaker } from "../../types/speakers";
55

66
export const useFetchSpeakers = (id?: string): UseQueryResult<ISpeaker[]> => {
77
return useQuery("api-speakers", async () => {
@@ -17,25 +17,6 @@ export const useFetchSpeakers = (id?: string): UseQueryResult<ISpeaker[]> => {
1717
returnData = serverResponse.data;
1818
}
1919

20-
const victorRentea: IResponse = {
21-
sessions: [],
22-
id: "cccf2456-cddf-4121-a668-d5f9f509f82e",
23-
bio: "With two decades of experience, Victor is a Java Champion working as a trainer for top companies in Europe. More than five thousand developers of 120 companies attended his workshops, so every week he has the opportunity to debate with bright engineers the challenges faced by their projects. In return, Victor summarizes key learning points from these workshops in conference talks and online meetups for the European Software Crafters, the world's largest community around architecture, refactoring, and testing. Find out how Victor can help you on https://victorrentea.ro: training catalog, consultancy, and YouTube playlists of his talks.",
24-
fullName: "Victor Rentea",
25-
links: [{
26-
url: "https://x.com/victorrentea",
27-
linkType: "LinkedIn",
28-
title: "LinkedIn"
29-
}, {
30-
url: "https://www.linkedin.com/in/victor-rentea-trainer",
31-
linkType: "Twitter",
32-
title: "Twitter"
33-
}],
34-
tagLine: "Java Champion and Trainer",
35-
profilePicture: "https://sessionize.com/image/3031-0o0o0-a3r6JkTgm9aUHJXBhbvnWQ.jpg?download=victor-rentea.jpg",
36-
}
37-
38-
return speakerAdapter([...returnData, victorRentea]);
20+
return speakerAdapter(returnData);
3921
});
4022
};
41-

0 commit comments

Comments
 (0)