Skip to content

Commit eb433e5

Browse files
committed
fix(react): remove widget_container from usable config
1 parent 16f131e commit eb433e5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Paywall/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ describe('<Paywall />', () => {
186186
document.querySelector<HTMLDivElement>('#restricted-content').innerText
187187
);
188188

189-
expect(content).toBe('This sentence should...');
189+
expect(content).toBe('This sentence should be almost...');
190190

191191
await sleep(11);
192192

@@ -200,7 +200,7 @@ describe('<Paywall />', () => {
200200
document.querySelector<HTMLDivElement>('#restricted-content').innerText
201201
);
202202

203-
expect(contentAfterConsent).toBe('This sentence should...');
203+
expect(contentAfterConsent).toBe('This sentence should be almost...');
204204
});
205205

206206
afterAll(async () => {

src/contexts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface AccessContextValue {
1717
* More infos:
1818
* https://www.poool.dev/docs/access/javascript/access/configuration
1919
*/
20-
config?: Poool.AccessConfigOptions;
20+
config?: Omit<Poool.AccessConfigOptions, 'widget_container'>;
2121
/**
2222
* Your poool access texts ati_tag_options
2323
*

0 commit comments

Comments
 (0)