type name changed

This commit is contained in:
VividTruthKeeper 2022-08-20 00:27:21 +05:00
parent 6f951dea6b
commit eb30f8e2d5
3 changed files with 6 additions and 6 deletions

View File

@ -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) => {

View File

@ -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,

View File

@ -1,4 +1,4 @@
export interface Structure {
export interface structureType {
id: number;
job: string;
name: string;