From c8895aa84b6b7bd428c0048f1183dda683a1d7f1 Mon Sep 17 00:00:00 2001 From: Hanssen0 Date: Sun, 29 Sep 2024 00:32:34 +0800 Subject: [PATCH] feat(connector): Powered by CCC --- .changeset/angry-taxis-swim.md | 6 +++++ packages/connector-react/src/hooks/useCcc.tsx | 3 +++ packages/connector/src/connector/index.ts | 3 +++ packages/connector/src/scenes/connected.ts | 22 ++++++++++++++++++- packages/demo/src/app/layoutProvider.tsx | 1 + 5 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .changeset/angry-taxis-swim.md diff --git a/.changeset/angry-taxis-swim.md b/.changeset/angry-taxis-swim.md new file mode 100644 index 00000000..12156a7e --- /dev/null +++ b/.changeset/angry-taxis-swim.md @@ -0,0 +1,6 @@ +--- +"@ckb-ccc/connector": patch +"@ckb-ccc/connector-react": patch +--- + +feat(connector): Powered by CCC diff --git a/packages/connector-react/src/hooks/useCcc.tsx b/packages/connector-react/src/hooks/useCcc.tsx index c01e1759..1ec2ec92 100644 --- a/packages/connector-react/src/hooks/useCcc.tsx +++ b/packages/connector-react/src/hooks/useCcc.tsx @@ -55,6 +55,7 @@ class SignersControllerWithFilter extends ccc.SignersController { export function Provider({ children, connectorProps, + hideMark, name, icon, signerFilter, @@ -65,6 +66,7 @@ export function Provider({ }: { children: ReactNode; connectorProps?: HTMLAttributes<{}>; + hideMark?: boolean, name?: string; icon?: string; signerFilter?: ( @@ -128,6 +130,7 @@ export function Provider({ }} > + ${this.hideMark == null + ? html`Powered by CCC` + : ""} +