diff --git a/src/components/reviewModal/ReviewModal.tsx b/src/components/reviewModal/ReviewModal.tsx index 78f1ad1..91e3435 100644 --- a/src/components/reviewModal/ReviewModal.tsx +++ b/src/components/reviewModal/ReviewModal.tsx @@ -53,8 +53,6 @@ const ReviewModal = ({ handleClose, reviewModalData, }: ReviewModalProps) => { - console.log("reviewModalData", reviewModalData); - return ( { - // const [value, setValue] = React.useState(data?.rating); - // const [hover, setHover] = React.useState(-1); return ( <> { size="small" precision={0.5} readOnly - // onChange={(event, newValue) => { - // setValue(newValue); - // }} - // onChangeActive={(event, newHover) => { - // setHover(newHover); - // }} emptyIcon={ } diff --git a/src/components/table/TanStackTable.tsx b/src/components/table/TanStackTable.tsx index d0da779..45b99f4 100644 --- a/src/components/table/TanStackTable.tsx +++ b/src/components/table/TanStackTable.tsx @@ -119,7 +119,6 @@ const TanStackTable = ({ data }: any) => { const handleButtonClick = (rowData: any) => { setReviewModalData(rowData?.reviews); handleOpen(); - // console.log("Button clicked for row:", rowData?.reviews); }; const table = useReactTable({ @@ -130,7 +129,6 @@ const TanStackTable = ({ data }: any) => { useEffect(() => { setTableData(data?.products); - console.log("Server data", data); }, [data]); return ( diff --git a/src/components/wrapper/dashboardWrapper.tsx b/src/components/wrapper/dashboardWrapper.tsx index 53aaac8..cf63828 100644 --- a/src/components/wrapper/dashboardWrapper.tsx +++ b/src/components/wrapper/dashboardWrapper.tsx @@ -93,10 +93,6 @@ export default function DashboardWrapper(props: Props) { }; const [activeIndex, setActiveIndex] = useState(null); - React.useEffect(() => { - console.log("User Data", userData); - }, [userData]); - const drawer = ( <> diff --git a/src/services/api/loginApi.ts b/src/services/api/loginApi.ts index 59bb92e..b686e6b 100644 --- a/src/services/api/loginApi.ts +++ b/src/services/api/loginApi.ts @@ -1,5 +1,5 @@ // api.ts -import axiosInstance from '../axios/axiosInstance'; +import axiosInstance from "../axios/axiosInstance"; export interface LoginResponse { id: number; @@ -18,7 +18,8 @@ interface LoginData { password: string; } +/** Login API POST */ export const loginApi = async (data: LoginData): Promise => { - const response = await axiosInstance.post('/auth/login', data); + const response = await axiosInstance.post("/auth/login", data); return response.data; }; diff --git a/src/services/home.services.ts b/src/services/home.services.ts index 70be01f..6596c5e 100644 --- a/src/services/home.services.ts +++ b/src/services/home.services.ts @@ -1,5 +1,6 @@ import axios, { isAxiosError } from "axios"; +/** Product List Home Page */ const homeServices = { getProducts: async () => { try {