Skip to content

Commit

Permalink
fix: 修复组件没有默认导出
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnotech committed Jul 22, 2024
1 parent eee7f3f commit 49028fd
Show file tree
Hide file tree
Showing 6 changed files with 3,094 additions and 4,130 deletions.
4 changes: 3 additions & 1 deletion doc/components/tag.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { ReactNode } from "react";
import "./index.css";

export const Tag = ({ children }: { children: ReactNode }) => {
const Tag = ({ children }: { children: ReactNode }) => {
return <span className="tag">{children}</span>;
};

export default Tag;
2 changes: 1 addition & 1 deletion doc/nep/definition/1-package.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[//]: # (This file is automatically generated by script, do not modify it.)

import { Tag } from "../../components/tag.tsx"
import Tag from "../../components/tag.tsx"

描述 Nep 包的基本信息,表位于 [`package.toml`](/nep/struct/2-inner.html#包描述文件)
## package
Expand Down
2 changes: 1 addition & 1 deletion doc/nep/definition/4-steps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[//]: # (This file is automatically generated by script, do not modify it.)

import { Tag } from "../../components/tag.tsx"
import Tag from "../../components/tag.tsx"

通过步骤组成工作流完成指定操作。
## Copy
Expand Down
Loading

0 comments on commit 49028fd

Please sign in to comment.