Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NgocNhi123 committed Jun 27, 2024
1 parent b9c0d62 commit 107e8d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions new-docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { ReactElement, ReactNode } from "react";

/**
* Moai components require className "light" for styling so we create a custom
* layout that wrap outside all documents with className "light"
* https://vocs.dev/docs/structure#layout-component
*/
export default function Layout(props: { children: ReactNode }): ReactElement {
return <div className="light">{props.children}</div>;
}

0 comments on commit 107e8d3

Please sign in to comment.