From 56b519bdcecfdc0d6b8b6875b88ac8f24d6f73f7 Mon Sep 17 00:00:00 2001 From: soheil khaledabadi Date: Sat, 22 Feb 2025 20:55:54 +0330 Subject: [PATCH] fix(ConfigItem.tsx): improve code formatting and update button label for service details --- .../profile/section/components/ConfigItem.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/pages/profile/section/components/ConfigItem.tsx b/src/pages/profile/section/components/ConfigItem.tsx index bca9e77..6a6f7e4 100644 --- a/src/pages/profile/section/components/ConfigItem.tsx +++ b/src/pages/profile/section/components/ConfigItem.tsx @@ -62,7 +62,7 @@ const ConfigItem = ({ setUsername(""); setPassword(""); } - }, [textCopy , type]); + }, [textCopy, type]); const queryUpdateConfig = useQuery({ queryKey: ["updateConfig", isOpenDropDown || isOpen], @@ -70,7 +70,7 @@ const ConfigItem = ({ if (configId) { console.log("fethed"); return axios.get(`/update-config/${configId}`); - }else{ + } else { throw new Error("داده دریافتی یا پیدا نشده یا نامعتبر است") } }, @@ -82,7 +82,7 @@ const ConfigItem = ({ maxTraffic: queryUpdateConfig?.data?.data?.result?.max_traffic, traffic: queryUpdateConfig?.data?.data?.result?.traffic, }); - }, [queryUpdateConfig?.data, queryUpdateConfig.error , queryUpdateConfig.isFetching , queryUpdateConfig.isLoading]); + }, [queryUpdateConfig?.data, queryUpdateConfig.error, queryUpdateConfig.isFetching, queryUpdateConfig.isLoading]); return ( <> )}

تاریخ خرید : {dateBuy}

  • @@ -189,7 +188,7 @@ const ConfigItem = ({ {queryUpdateConfig.isLoading || - queryUpdateConfig.isFetching ? ( + queryUpdateConfig.isFetching ? (
    @@ -209,13 +208,13 @@ const ConfigItem = ({