-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfcb208
commit 89ba553
Showing
10 changed files
with
140 additions
and
136 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
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
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,95 +1,97 @@ | ||
// eslint-disable-next-line import/export | ||
export interface IXBlockInfo { | ||
id: string; | ||
displayName: string; | ||
child_info?: { | ||
children?: IXBlockInfo[]; | ||
}; | ||
category?: string; | ||
has_children?: boolean; | ||
id: string; | ||
displayName: string; | ||
child_info?: { | ||
children?: IXBlockInfo[]; | ||
}; | ||
category?: string; | ||
has_children?: boolean; | ||
} | ||
|
||
export interface IUseMoveModalParams { | ||
isOpenModal: boolean; | ||
closeModal: () => void; | ||
openModal: () => void; | ||
courseId: string; | ||
isOpenModal: boolean; | ||
closeModal: () => void; | ||
openModal: () => void; | ||
courseId: string; | ||
} | ||
|
||
export interface IUseMoveModalReturn { | ||
isLoading: boolean; | ||
isValidMove: boolean; | ||
isExtraSmall: boolean; | ||
parentInfo: { | ||
parent: IXBlockInfo; | ||
category: string; | ||
}; | ||
childrenInfo: { | ||
children: IXBlockInfo[]; | ||
category: string; | ||
}; | ||
displayName: string; | ||
sourceXBlockId: string; | ||
categoryText: string; | ||
breadcrumbs: string[]; | ||
currentXBlockParentIds: string[]; | ||
handleXBlockClick: (newParentIndex: string|number) => void; | ||
handleBreadcrumbsClick: (newParentIndex: string|number) => void; | ||
handleCLoseModal: () => void; | ||
handleMoveXBlock: () => void; | ||
isLoading: boolean; | ||
isValidMove: boolean; | ||
isExtraSmall: boolean; | ||
parentInfo: { | ||
parent: IXBlockInfo; | ||
category: string; | ||
}; | ||
childrenInfo: { | ||
children: IXBlockInfo[]; | ||
category: string; | ||
}; | ||
displayName: string; | ||
sourceXBlockId: string; | ||
categoryText: string; | ||
breadcrumbs: string[]; | ||
currentXBlockParentIds: string[]; | ||
handleXBlockClick: (newParentIndex: string | number) => void; | ||
handleBreadcrumbsClick: (newParentIndex: string | number) => void; | ||
handleCLoseModal: () => void; | ||
handleMoveXBlock: () => void; | ||
} | ||
|
||
export interface IState { | ||
sourceXBlockInfo: { | ||
current: IXBlockInfo; | ||
parent: IXBlockInfo; | ||
}; | ||
childrenInfo: { | ||
children: IXBlockInfo[]; | ||
category: string; | ||
}; | ||
parentInfo: { | ||
parent: IXBlockInfo; | ||
category: string; | ||
}; | ||
visitedAncestors: IXBlockInfo[]; | ||
isValidMove: boolean; | ||
sourceXBlockInfo: { | ||
current: IXBlockInfo; | ||
parent: IXBlockInfo; | ||
}; | ||
childrenInfo: { | ||
children: IXBlockInfo[]; | ||
category: string; | ||
}; | ||
parentInfo: { | ||
parent: IXBlockInfo; | ||
category: string; | ||
}; | ||
visitedAncestors: IXBlockInfo[]; | ||
isValidMove: boolean; | ||
} | ||
|
||
export interface ITreeNode { | ||
id: string; | ||
child_info?: { | ||
children?: ITreeNode[]; | ||
}; | ||
id: string; | ||
child_info?: { | ||
children?: ITreeNode[]; | ||
}; | ||
} | ||
|
||
// eslint-disable-next-line import/export | ||
export interface IXBlockInfo { | ||
category?: string; | ||
hasChildren?: boolean; | ||
has_children?: boolean; | ||
category?: string; | ||
hasChildren?: boolean; | ||
has_children?: boolean; | ||
} | ||
|
||
export interface IAncestor { | ||
category?: string; | ||
display_name?: string; | ||
category?: string; | ||
display_name?: string; | ||
} | ||
|
||
export interface IMoveModalProps { | ||
isOpenModal: boolean, | ||
closeModal: () => void, | ||
openModal: () => void, | ||
courseId: string, | ||
isOpenModal: boolean, | ||
closeModal: () => void, | ||
openModal: () => void, | ||
courseId: string, | ||
} | ||
|
||
export interface IXBlockChildInfo { | ||
category?: string; | ||
display_name?: string; | ||
children?: IXBlock[]; | ||
category?: string; | ||
display_name?: string; | ||
children?: IXBlock[]; | ||
} | ||
|
||
export interface IXBlock { | ||
id: string; | ||
display_name: string; | ||
category: string; | ||
has_children: boolean; | ||
child_info?: IXBlockChildInfo; | ||
id: string; | ||
display_name: string; | ||
category: string; | ||
has_children: boolean; | ||
child_info?: IXBlockChildInfo; | ||
} |
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
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
Oops, something went wrong.