Skip to content

Commit

Permalink
fix policy modal
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-drexler committed Oct 20, 2023
1 parent ffe7994 commit 1fb524f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/long-doors-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/ui-extensions': patch
'@shopify/ui-extensions-react': patch
---

fix policy modal handling
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ export interface PolicyModalProps {
type: PolicyType;
}

export const PolicyModal = createRemoteReactComponent('PolicyModal');
export const PolicyModal = createRemoteReactComponent<
'PolicyModal',
PolicyModalProps
>('PolicyModal');
3 changes: 2 additions & 1 deletion packages/ui-extensions-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"outDir": "build/ts",
"rootDir": "src",
"jsx": "react-jsx"
"jsx": "react-jsx",
"stripInternal": true
},
"include": ["config/typescript/faker.d.ts", "src/**/*.ts", "src/**/*.tsx"],
"exclude": ["src/**/*.example.tsx", "src/**/tests/**"],
Expand Down
3 changes: 2 additions & 1 deletion packages/ui-extensions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../config/typescript/tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "build/ts"
"outDir": "build/ts",
"stripInternal": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["src/**/*.example.*", "src/**/tests/**"]
Expand Down

0 comments on commit 1fb524f

Please sign in to comment.