-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Create new project from the project dropdown (#3360)
* createw new project in add task or task detail page * add project dropdown in task creation process * add coderabit suggetions
- Loading branch information
Showing
19 changed files
with
285 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import { IProject } from '@app/interfaces'; | ||
import { IProject, IProjectCreate } from '@app/interfaces'; | ||
import { post } from '../axios'; | ||
|
||
type Params = { | ||
name: string; | ||
tenantId: string; | ||
organizationId: string; | ||
}; | ||
export function createOrganizationProjectAPI(data: IProjectCreate) { | ||
|
||
export function createOrganizationProjectAPI(params: Params) { | ||
return post<IProject>(`/organization-projects`, params); | ||
return post<IProject>(`/organization-projects`, data); | ||
} |
Oops, something went wrong.