forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): add v2 components for docs (novuhq#5975)
Co-authored-by: Richard Fontein <[email protected]>
- Loading branch information
1 parent
6ab86b5
commit e3e82d8
Showing
18 changed files
with
523 additions
and
357 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Docs } from './Docs'; | ||
import { useLoadDocs } from './useLoadDocs'; | ||
|
||
/** | ||
* This component is used to load imported docs in main docs path. | ||
* It will not have a title and description. | ||
*/ | ||
export const ChildDocs = ({ path }: { path: string }) => { | ||
const { isLoading, data } = useLoadDocs({ path, isEnabled: true }); | ||
|
||
return <Docs isLoading={isLoading} isChildDocs {...data}></Docs>; | ||
}; |
Oops, something went wrong.