Implement routes for project tabs (#63)

* Add routes to project tabs

* remove react tabs and use material tailwind component instead

* Refactor code to move project tab panels in pages directory

* Remove unused function from database class

* Refactor routes for project tabs
This commit is contained in:
2024-02-12 12:17:47 +05:30
committed by GitHub
parent a58b9b255e
commit 559e0f8934
11 changed files with 152 additions and 136 deletions
-18
View File
@@ -83,24 +83,6 @@ export class Database {
return userOrgs;
}
async getProjectsByOrganizationId (organizationId: string): Promise<Project[]> {
const projectRepository = this.dataSource.getRepository(Project);
const projects = await projectRepository.find({
relations: {
organization: true,
owner: true
},
where: {
organization: {
id: organizationId
}
}
});
return projects;
}
async getProjectById (projectId: string): Promise<Project | null> {
const projectRepository = this.dataSource.getRepository(Project);