Add missed ;

This commit is contained in:
Max Base
2024-06-29 13:56:13 +03:30
parent d0e3f6be00
commit df09b204ab
7 changed files with 18 additions and 13 deletions

View File

@@ -70,10 +70,11 @@ const Profile = () => {
const {data,isLoading,isFetching,error} = useQuery({
queryKey:["profile",mutation],
queryFn:()=>{
queryFn: () => {
return axios.get('/profile');
}
})
});
return (
<>
{!mutation.isPending && (

View File

@@ -28,10 +28,11 @@ const ModalConfigDetails = ({
maxTraffic: number | "unlimited";
traffic: number;
}) => {
const navigate = useNavigate()
const navigate = useNavigate();
const copyToClipboard = async (textToCopy: string) => {
try {
await navigator.clipboard.writeText(textToCopy);
toast.success("متن با موفقیت کپی شد!");
} catch (err) {
toast.error(`Failed to copy: , ${err}`);

View File

@@ -5,13 +5,13 @@ import useAxios from "../../../hooks/useAxios";
import { useQuery } from "@tanstack/react-query";
const Tutorials = () => {
const axios = useAxios()
const axios = useAxios();
const {data,error,isLoading,isFetching} = useQuery({
queryKey:["categoryLearning"],
queryFn:()=>{
return axios.get('/home/category/learning')
queryFn: () => {
return axios.get('/home/category/learning');
}
})
});
const [activeTutorial, setActiveTutorial] = useState<number>(1);
return (
<div className="relative w-full h-full flex flex-col px-4 py-4 text-start">