add font to GBadge
This commit is contained in:
parent
b21b07953b
commit
2f570b9ae9
10862
dist/remote/GBadge.js
vendored
10862
dist/remote/GBadge.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
import { Badge, ChakraProvider } from "@chakra-ui/react";
|
import { Badge, ChakraProvider } from "@chakra-ui/react";
|
||||||
|
import { Fonts, theme } from "../../core/style.jsx";
|
||||||
|
|
||||||
const GBadge = ({ children, ...props }) => {
|
const GBadge = ({ children, ...props }) => {
|
||||||
return (
|
return (
|
||||||
@ -60,7 +61,8 @@ class GBadgeElement extends HTMLElement {
|
|||||||
if (!this._root) return;
|
if (!this._root) return;
|
||||||
|
|
||||||
this._root.render(
|
this._root.render(
|
||||||
<ChakraProvider>
|
<ChakraProvider theme={theme}>
|
||||||
|
<Fonts />
|
||||||
<GBadge {...this._props} />
|
<GBadge {...this._props} />
|
||||||
</ChakraProvider>,
|
</ChakraProvider>,
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user