File tree Expand file tree Collapse file tree 4 files changed +10
-51
lines changed Expand file tree Collapse file tree 4 files changed +10
-51
lines changed Original file line number Diff line number Diff line change 20
20
"@plasmohq/storage" : " ^1.10.0" ,
21
21
"@tailwindcss/forms" : " ^0.5.10" ,
22
22
"classnames" : " ^2.5.1" ,
23
- "configcat-js" : " ^9.6.0" ,
24
- "configcat-react" : " ^4.9.0" ,
23
+
25
24
"lucide-react" : " ^0.474.0" ,
26
25
"plasmo" : " ^0.90.5" ,
27
26
"react" : " ^18.3.1" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import cssText from "data-text:../button/button.css";
2
2
import type { PlasmoCSConfig , PlasmoGetInlineAnchor } from "plasmo" ;
3
3
import React , { type ReactElement } from "react" ;
4
4
import { EVENT_CURRENT_URL_CHANGED } from "~constants" ;
5
- import { ConfigCatProvider , configCatProviderConfig } from "~hooks/use-configcat" ;
5
+
6
6
import { OnaButton } from "../button/button" ;
7
7
import { buttonContributions , isSiteSuitable , type ButtonContributionParams } from "../button/button-contributions" ;
8
8
@@ -41,14 +41,12 @@ class ButtonContributionManager {
41
41
if ( ! this . buttons . has ( containerId ) ) {
42
42
this . buttons . set (
43
43
containerId ,
44
- < ConfigCatProvider { ...configCatProviderConfig } >
45
- < OnaButton
46
- key = { containerId }
47
- application = { contribution . application }
48
- additionalClassNames = { contribution . additionalClassNames }
49
- urlTransformer = { contribution . urlTransformer }
50
- />
51
- </ ConfigCatProvider > ,
44
+ < OnaButton
45
+ key = { containerId }
46
+ application = { contribution . application }
47
+ additionalClassNames = { contribution . additionalClassNames }
48
+ urlTransformer = { contribution . urlTransformer }
49
+ /> ,
52
50
) ;
53
51
}
54
52
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { CheckboxInputField } from "~components/forms/CheckboxInputField";
8
8
import { InputField } from "~components/forms/InputField" ;
9
9
import { TextInput } from "~components/forms/TextInputField" ;
10
10
import { ALL_ORIGINS_WILDCARD , DEFAULT_ONA_ENDPOINT } from "~constants" ;
11
- import { ConfigCatProvider , configCatProviderConfig } from "~hooks/use-configcat" ;
11
+
12
12
import { useTemporaryState } from "~hooks/use-temporary-state" ;
13
13
import {
14
14
STORAGE_AUTOMATICALLY_DETECT_GITPOD ,
@@ -176,11 +176,7 @@ function PopupContent() {
176
176
}
177
177
178
178
function IndexPopup ( ) {
179
- return (
180
- < ConfigCatProvider { ...configCatProviderConfig } >
181
- < PopupContent />
182
- </ ConfigCatProvider >
183
- ) ;
179
+ return < PopupContent /> ;
184
180
}
185
181
186
182
export default IndexPopup ;
You can’t perform that action at this time.
0 commit comments