Skip to content

Commit 0772cfd

Browse files
committed
[design-system] repair hot reload
1 parent fadd1d5 commit 0772cfd

File tree

1 file changed

+2
-2
lines changed
  • packages/gephi-lite/src/designSystem

1 file changed

+2
-2
lines changed

packages/gephi-lite/src/designSystem/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { keys } from "lodash";
2-
import { FC } from "react";
2+
import { FC, createElement } from "react";
33
import { Link, useParams } from "react-router";
44

55
// ADD PAGES
@@ -27,7 +27,7 @@ const DesignSystemPage: FC = () => {
2727
))}
2828
</ul>
2929

30-
{page && page in PARAM_2_PAGE && PARAM_2_PAGE[page]({})}
30+
{page && page in PARAM_2_PAGE && createElement(PARAM_2_PAGE[page])}
3131
</div>
3232
);
3333
};

0 commit comments

Comments
 (0)