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