Skip to content

Commit

Permalink
refactor:removed unwanted code
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade committed Oct 5, 2023
1 parent 4621f99 commit 6f38435
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
7 changes: 5 additions & 2 deletions src/api/ecosystems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/app/SideBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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"
></path>
</svg>
<span class="ml-3" sidebar-toggle-item>Ecosystems</span>
<span class="ml-3" sidebar-toggle-item>Ecosystem</span>
</a>
</li>
<!--
Expand Down
5 changes: 0 additions & 5 deletions src/config/pathRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ export const pathRoutes = {
ecosystems: {
root: '/ecosystems',
dashboard:'/ecosystems/dashboard'
// frameworks: '/ecosystems/frameworks',
// members: '/ecosystems/members',
// registries: '/ecosystems/registries',
// users: '/organizations/users',
// credentials: '/organizations/credentials'
},
documentation: {
root: 'https://docs.credebl.id'
Expand Down

0 comments on commit 6f38435

Please sign in to comment.