From 6f38435527236018b8180d8cb3c75eaef0aa2ecd Mon Sep 17 00:00:00 2001 From: pranalidhanavade Date: Thu, 5 Oct 2023 11:12:53 +0530 Subject: [PATCH] refactor:removed unwanted code Signed-off-by: pranalidhanavade --- src/api/ecosystems.ts | 7 +++++-- src/app/SideBar.astro | 2 +- src/config/pathRoutes.ts | 5 ----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/api/ecosystems.ts b/src/api/ecosystems.ts index 069f339f2..73551ff6c 100644 --- a/src/api/ecosystems.ts +++ b/src/api/ecosystems.ts @@ -3,10 +3,13 @@ import { apiRoutes } from "../config/apiRoutes"; import { getFromLocalStorage } from "./Auth"; import { storageKeys } from "../config/CommonConstant"; -export const createEcosystems = async (data: object) => { +interface datapayload{ +data:object +} +export const createEcosystems = async (Datapayload:datapayload) => { const url = apiRoutes.ecosystem.create - const payload = data + const payload = Datapayload const token = await getFromLocalStorage(storageKeys.TOKEN) const config = { diff --git a/src/app/SideBar.astro b/src/app/SideBar.astro index 252b1f303..dbd4faba0 100644 --- a/src/app/SideBar.astro +++ b/src/app/SideBar.astro @@ -114,7 +114,7 @@ import { pathRoutes } from "../config/pathRoutes"; d="M.99 5.24A2.25 2.25 0 013.25 3h13.5A2.25 2.25 0 0119 5.25l.01 9.5A2.25 2.25 0 0116.76 17H3.26A2.267 2.267 0 011 14.74l-.01-9.5zm8.26 9.52v-.625a.75.75 0 00-.75-.75H3.25a.75.75 0 00-.75.75v.615c0 .414.336.75.75.75h5.373a.75.75 0 00.627-.74zm1.5 0a.75.75 0 00.627.74h5.373a.75.75 0 00.75-.75v-.615a.75.75 0 00-.75-.75H11.5a.75.75 0 00-.75.75v.625zm6.75-3.63v-.625a.75.75 0 00-.75-.75H11.5a.75.75 0 00-.75.75v.625c0 .414.336.75.75.75h5.25a.75.75 0 00.75-.75zm-8.25 0v-.625a.75.75 0 00-.75-.75H3.25a.75.75 0 00-.75.75v.625c0 .414.336.75.75.75H8.5a.75.75 0 00.75-.75zM17.5 7.5v-.625a.75.75 0 00-.75-.75H11.5a.75.75 0 00-.75.75V7.5c0 .414.336.75.75.75h5.25a.75.75 0 00.75-.75zm-8.25 0v-.625a.75.75 0 00-.75-.75H3.25a.75.75 0 00-.75.75V7.5c0 .414.336.75.75.75H8.5a.75.75 0 00.75-.75z" > - Ecosystems + Ecosystem