Add missed ;
This commit is contained in:
@@ -70,10 +70,11 @@ const Profile = () => {
|
||||
|
||||
const {data,isLoading,isFetching,error} = useQuery({
|
||||
queryKey:["profile",mutation],
|
||||
queryFn:()=>{
|
||||
queryFn: () => {
|
||||
return axios.get('/profile');
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
{!mutation.isPending && (
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user