type name changed
This commit is contained in:
parent
6f951dea6b
commit
eb30f8e2d5
|
|
@ -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<SlideProps[]>
|
||||
|
|
@ -110,7 +110,7 @@ export const getVideos = (
|
|||
.catch();
|
||||
};
|
||||
|
||||
export const getStructure = (setState: React.Dispatch<Structure[]>) => {
|
||||
export const getStructure = (setState: React.Dispatch<structureType[]>) => {
|
||||
axios
|
||||
.get(structure)
|
||||
.then((res) => {
|
||||
|
|
|
|||
|
|
@ -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<Structure[]>
|
||||
structureType[],
|
||||
React.Dispatch<structureType[]>
|
||||
] = useState([
|
||||
{
|
||||
id: -1,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export interface Structure {
|
||||
export interface structureType {
|
||||
id: number;
|
||||
job: string;
|
||||
name: string;
|
||||
|
|
|
|||
Loading…
Reference in New Issue