field private

This commit is contained in:
VividTruthKeeper 2023-02-10 01:21:10 +05:00
parent e11db7324d
commit a6978823f1
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
// Modules // Modules
import axios from "axios"; import axios from "axios";
import { Dispatch, SetStateAction } from "react"; import { Dispatch, SetStateAction } from "react";
import { useSelector } from "react-redux"; import { DispatchProp, useSelector } from "react-redux";
// Types // Types
import { IurlParamAdder } from "../types/api.types"; import { IurlParamAdder } from "../types/api.types";
@ -11,9 +11,9 @@ import { RootState } from "../types/store.types";
import { urlParamAdder } from "../helpers/urlParamAdder"; import { urlParamAdder } from "../helpers/urlParamAdder";
export class Api { export class Api {
url: string = ""; private url: string = "";
params?: IurlParamAdder[]; private params?: IurlParamAdder[];
language = useSelector<RootState, RootState["language"]["title"]>( public language = useSelector<RootState, RootState["language"]["title"]>(
(state) => state.language.title (state) => state.language.title
); );