diff --git a/src/helpers/apiRequests.ts b/src/helpers/apiRequests.ts index 2ff2a09..14b06c4 100644 --- a/src/helpers/apiRequests.ts +++ b/src/helpers/apiRequests.ts @@ -26,7 +26,7 @@ import { ContactData, Contact } from "../types/contact"; import { Video } from "../types/video"; import { Player, playerType } from "../types/players"; import { About } from "../types/about"; -import { Structure } from "../types/structure"; +import { structureType } from "../types/structure"; export const getMainSliderData = ( setState: React.Dispatch @@ -110,7 +110,7 @@ export const getVideos = ( .catch(); }; -export const getStructure = (setState: React.Dispatch) => { +export const getStructure = (setState: React.Dispatch) => { axios .get(structure) .then((res) => { diff --git a/src/pages/Structure.tsx b/src/pages/Structure.tsx index ce2bc37..dfa3fcc 100644 --- a/src/pages/Structure.tsx +++ b/src/pages/Structure.tsx @@ -15,12 +15,12 @@ import { highlightColor } from "../helpers/otherVariables"; import { hosting } from "../links"; // Types -import { Structure } from "../types/structure"; +import { structureType } from "../types/structure"; const Structure = () => { const [structureData, setStructureData]: [ - Structure[], - React.Dispatch + structureType[], + React.Dispatch ] = useState([ { id: -1, diff --git a/src/types/structure.ts b/src/types/structure.ts index cee4748..944839c 100644 --- a/src/types/structure.ts +++ b/src/types/structure.ts @@ -1,4 +1,4 @@ -export interface Structure { +export interface structureType { id: number; job: string; name: string;